mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
LibJS+LibWeb: Pass constants into execution context constructor
The additional data being passed will be used in an upcoming commit. Allows splitting the churn of modified function signatures from the logically meaningful code change. No behavior change.
This commit is contained in:
parent
52c46483d1
commit
7002c47ce1
Notes:
github-actions[bot]
2026-03-29 11:45:12 +00:00
Author: https://github.com/InvalidUsernameException
Commit: 7002c47ce1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8651
Reviewed-by: https://github.com/awesomekling
23 changed files with 72 additions and 69 deletions
|
|
@ -125,7 +125,7 @@ JS::Promise* JavaScriptModuleScript::run(PreventErrorReporting)
|
|||
// NON-STANDARD: To ensure that LibJS can find the module on the stack, we push a new execution context.
|
||||
auto& stack = vm().interpreter_stack();
|
||||
auto* stack_mark = stack.top();
|
||||
auto* module_execution_context = stack.allocate(0, 0, 0);
|
||||
auto* module_execution_context = stack.allocate(0, ReadonlySpan<JS::Value> {}, 0);
|
||||
VERIFY(module_execution_context);
|
||||
module_execution_context->realm = &realm;
|
||||
module_execution_context->script_or_module = GC::Ref<JS::Module> { *record };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue