Support dynamic import calls (#4652)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2021-07-24 09:26:46 +02:00
committed by GitHub
parent d9360f51d0
commit d4178ae386
21 changed files with 698 additions and 114 deletions
+4 -1
View File
@@ -1372,8 +1372,11 @@ parser_error_to_string (parser_error_t error) /**< error code */
{
return "Export not defined in module";
}
case PARSER_ERR_IMPORT_AFTER_NEW:
{
return "Module import call is not allowed after new";
}
#endif /* JERRY_MODULE_SYSTEM */
default:
{
JERRY_ASSERT (error == PARSER_ERR_NO_ERROR);