LibJS: Remove two unused members from ExecutionContext

This commit is contained in:
Andreas Kling 2024-05-31 15:12:33 +02:00
parent f5cacf25e1
commit a3782782fa
Notes: sideshowbarker 2024-07-17 03:05:16 +09:00
15 changed files with 29 additions and 36 deletions

View file

@ -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);