mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibJS: Remove two unused members from ExecutionContext
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a3782782fa Pull-request: https://github.com/SerenityOS/serenity/pull/24495 Reviewed-by: https://github.com/gmta ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user