LibJS: Assume is_strict_mode called with running execution context

This should always be invoked when there is an execution context
on the stack.
This commit is contained in:
Shannon Booth 2025-05-16 12:37:15 +12:00 committed by Alexander Kalenik
commit 7d44640c0f
Notes: github-actions[bot] 2025-05-23 01:26:54 +00:00
2 changed files with 4 additions and 8 deletions

View file

@ -407,13 +407,6 @@ Object& VM::get_global_object()
return current_realm.global_object();
}
bool VM::in_strict_mode() const
{
if (execution_context_stack().is_empty())
return false;
return running_execution_context().is_strict_mode;
}
void VM::run_queued_promise_jobs_impl()
{
dbgln_if(PROMISE_DEBUG, "Running queued promise jobs");