Clear top module context after local variables have been imported (#2859)
This fixes an assertion failure which was caused by incorrectly importing the same variables multiple times. Co-authored-by: Marko Fabo <mfabo@inf.u-szeged.hu> JerryScript-DCO-1.0-Signed-off-by: Marko Fabo mfabo@inf.u-szeged.hu JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
@@ -3603,6 +3603,8 @@ vm_run (const ecma_compiled_code_t *bytecode_header_p, /**< byte-code data heade
|
||||
{
|
||||
return ret_value;
|
||||
}
|
||||
|
||||
JERRY_CONTEXT (module_top_context_p) = NULL;
|
||||
}
|
||||
#endif /* ENABLED (JERRY_ES2015_MODULE_SYSTEM) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user