mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-29 15:58:47 +00:00
LibJS: Remove two unused members from ExecutionContext
This commit is contained in:
parent
f5cacf25e1
commit
a3782782fa
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/awesomekling
Commit: a3782782fa
Pull-request: https://github.com/SerenityOS/serenity/pull/24495
Reviewed-by: https://github.com/gmta ✅
15 changed files with 29 additions and 36 deletions
|
@ -148,7 +148,7 @@ JS::Promise* JavaScriptModuleScript::run(PreventErrorReporting)
|
|||
VERIFY(record);
|
||||
|
||||
// NON-STANDARD: To ensure that LibJS can find the module on the stack, we push a new execution context.
|
||||
auto module_execution_context = JS::ExecutionContext::create(heap());
|
||||
auto module_execution_context = JS::ExecutionContext::create();
|
||||
module_execution_context->realm = &settings.realm();
|
||||
module_execution_context->script_or_module = JS::NonnullGCPtr<JS::Module> { *record };
|
||||
vm().push_execution_context(*module_execution_context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue