LibJS: Add ScriptOrModule to execution context and track it everywhere

This commit is contained in:
davidot 2022-01-17 14:48:22 +01:00 committed by Linus Groh
commit 57c5a59cab
Notes: sideshowbarker 2024-07-17 20:29:01 +09:00
10 changed files with 42 additions and 6 deletions

View file

@ -55,7 +55,7 @@ ThrowCompletionOr<Object*> ShadowRealmConstructor::construct(FunctionObject& new
context.realm = realm;
// 8. Set the ScriptOrModule of context to null.
// FIXME: Our execution context struct currently does not track this item.
// Note: This is already the default value.
// 2. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%ShadowRealm.prototype%", « [[ShadowRealm]], [[ExecutionContext]] »).
// 4. Set O.[[ShadowRealm]] to realmRec.