mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Convert push_execution_context() to ThrowCompletionOr
This commit is contained in:
@@ -57,8 +57,7 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable const& e
|
||||
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());
|
||||
VERIFY(!vm().exception());
|
||||
MUST(vm().push_execution_context(execution_context, global_object()));
|
||||
}
|
||||
|
||||
auto block = entry_point ?: &executable.basic_blocks.first();
|
||||
|
||||
Reference in New Issue
Block a user