LibJS: Add ScriptOrModule to execution context and track it everywhere

This commit is contained in:
davidot
2022-01-17 14:48:22 +01:00
committed by Linus Groh
parent 99edf5b25a
commit 57c5a59cab
Notes: sideshowbarker 2024-07-17 20:29:01 +09:00
10 changed files with 42 additions and 6 deletions

View File

@@ -109,6 +109,7 @@ private:
NonnullRefPtr<Statement> m_ecmascript_code; // [[ECMAScriptCode]]
ConstructorKind m_constructor_kind { ConstructorKind::Base }; // [[ConstructorKind]]
Realm* m_realm { nullptr }; // [[Realm]]
ScriptOrModule m_script_or_module; // [[ScriptOrModule]]
ThisMode m_this_mode { ThisMode::Global }; // [[ThisMode]]
bool m_strict { false }; // [[Strict]]
Object* m_home_object { nullptr }; // [[HomeObject]]