mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 23:29:52 +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
|
@ -107,7 +107,7 @@ SourceTextModule::SourceTextModule(Realm& realm, StringView filename, Script::Ho
|
|||
RefPtr<ExportStatement const> default_export)
|
||||
: CyclicModule(realm, filename, has_top_level_await, move(requested_modules), host_defined)
|
||||
, m_ecmascript_code(move(body))
|
||||
, m_execution_context(ExecutionContext::create(realm.heap()))
|
||||
, m_execution_context(ExecutionContext::create())
|
||||
, m_import_entries(move(import_entries))
|
||||
, m_local_export_entries(move(local_export_entries))
|
||||
, m_indirect_export_entries(move(indirect_export_entries))
|
||||
|
@ -674,7 +674,7 @@ ThrowCompletionOr<void> SourceTextModule::execute_module(VM& vm, GCPtr<PromiseCa
|
|||
dbgln_if(JS_MODULE_DEBUG, "[JS MODULE] SourceTextModule::execute_module({}, PromiseCapability @ {})", filename(), capability.ptr());
|
||||
|
||||
// 1. Let moduleContext be a new ECMAScript code execution context.
|
||||
auto module_context = ExecutionContext::create(vm.heap());
|
||||
auto module_context = ExecutionContext::create();
|
||||
|
||||
// Note: This is not in the spec but we require it.
|
||||
module_context->is_strict_mode = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue