Reimplement initialize & executing Module according to newer spec

* Update test runner for running module tests in test262

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2020-05-20 10:30:32 +09:00 committed by Hyukwoo Park
commit 9b9f980cfe
15 changed files with 732 additions and 371 deletions

View file

@ -2787,7 +2787,7 @@ NEVER_INLINE void ByteCodeInterpreter::callFunctionComplexCase(ExecutionState& s
}
env = env->outerEnvironment();
}
if (env->record()->isObjectEnvironmentRecord()) {
if (env && env->record()->isObjectEnvironmentRecord()) {
thisValue = env->record()->asObjectEnvironmentRecord()->bindingObject();
}
}