mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Add ScriptOrModule to execution context and track it everywhere
This commit is contained in:
parent
99edf5b25a
commit
57c5a59cab
Notes:
sideshowbarker
2024-07-17 20:29:01 +09:00
Author: https://github.com/davidot
Commit: 57c5a59cab
Pull-request: https://github.com/SerenityOS/serenity/pull/11957
Reviewed-by: https://github.com/emanuele6
Reviewed-by: https://github.com/linusg
10 changed files with 42 additions and 6 deletions
|
@ -85,7 +85,7 @@ ThrowCompletionOr<Value> NativeFunction::internal_call(Value this_argument, Mark
|
|||
callee_context.realm = callee_realm;
|
||||
|
||||
// 7. Set the ScriptOrModule of calleeContext to null.
|
||||
// FIXME: Our execution context struct currently does not track this item.
|
||||
// Note: This is already the default value.
|
||||
|
||||
// 8. Perform any necessary implementation-defined initialization of calleeContext.
|
||||
|
||||
|
@ -150,7 +150,7 @@ ThrowCompletionOr<Object*> NativeFunction::internal_construct(MarkedValueList ar
|
|||
callee_context.realm = callee_realm;
|
||||
|
||||
// 7. Set the ScriptOrModule of calleeContext to null.
|
||||
// FIXME: Our execution context struct currently does not track this item.
|
||||
// Note: This is already the default value.
|
||||
|
||||
// 8. Perform any necessary implementation-defined initialization of calleeContext.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue