mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:25:06 +00:00
LibJS: Also set ExecutionContext::realm in Bytecode::Interpreter::run()
I forgot to consider the bytecode Interpreter when adding a Realm to the ExecutionContext. This should make it a lot less crashy again :^)
This commit is contained in:
parent
1d47ec380f
commit
35cc579264
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ Value Interpreter::run(Executable const& executable, BasicBlock const* entry_poi
|
|||
execution_context.function_name = global_execution_context_name;
|
||||
execution_context.lexical_environment = &m_realm.global_environment();
|
||||
execution_context.variable_environment = &m_realm.global_environment();
|
||||
VERIFY(!vm().exception());
|
||||
execution_context.realm = &m_realm;
|
||||
// FIXME: How do we know if we're in strict mode? Maybe the Bytecode::Block should know this?
|
||||
// execution_context.is_strict_mode = ???;
|
||||
vm().push_execution_context(execution_context, global_object());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue