mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 14:05:11 +00:00
LibJS: Replace GlobalObject with VM in remaining AOs [Part 19/19]
This commit is contained in:
parent
25849f8a6d
commit
56b2ae5ac0
46 changed files with 173 additions and 207 deletions
|
@ -402,7 +402,7 @@ ThrowCompletionOr<void> SourceTextModule::initialize_environment(VM& vm)
|
|||
// Note: We're already working on that one.
|
||||
|
||||
// 17. Push moduleContext onto the execution context stack; moduleContext is now the running execution context.
|
||||
TRY(vm.push_execution_context(m_execution_context, realm().global_object()));
|
||||
TRY(vm.push_execution_context(m_execution_context, {}));
|
||||
|
||||
// 18. Let code be module.[[ECMAScriptCode]].
|
||||
|
||||
|
@ -655,7 +655,7 @@ ThrowCompletionOr<void> SourceTextModule::execute_module(VM& vm, Optional<Promis
|
|||
// a. Assert: capability is not present.
|
||||
VERIFY(!capability.has_value());
|
||||
// b. Push moduleContext onto the execution context stack; moduleContext is now the running execution context.
|
||||
TRY(vm.push_execution_context(module_context, realm().global_object()));
|
||||
TRY(vm.push_execution_context(module_context, {}));
|
||||
|
||||
// c. Let result be the result of evaluating module.[[ECMAScriptCode]].
|
||||
auto result = m_ecmascript_code->execute(vm.interpreter());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue