mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:25:06 +00:00
LibJS: Run the queued promise reaction jobs on bytecode interpreter exit
This is the same as what the AST interpreter does.
This commit is contained in:
parent
e4a7f1a696
commit
c604e95993
1 changed files with 4 additions and 0 deletions
|
@ -153,6 +153,10 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable const& e
|
|||
if (!m_register_windows.is_empty())
|
||||
m_register_windows.last()[0] = return_value;
|
||||
|
||||
// At this point we may have already run any queued promise jobs via on_call_stack_emptied,
|
||||
// in which case this is a no-op.
|
||||
vm().run_queued_promise_jobs();
|
||||
|
||||
if (vm().execution_context_stack().size() == 1)
|
||||
vm().pop_execution_context();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue