From 286a9d81010d2a76b9527c1fbf8d5e2e96c19dc9 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Fri, 9 May 2025 16:47:56 +1200 Subject: [PATCH] LibJS: Don't run promise and cleanup jobs in Interpreter::run https://tc39.es/ecma262/#sec-jobs specifies that we should only be running queued promise jobs and host-defined cleanup when the execution context stack is empty. It is asserted to _not_ be empty the line above, so remove it. No impact on test262 or our test suites, Interpreter::run_executable is already (incorrectly) performing this unconditionally. run_promise_jobs also happens to do nothing when LibJS is embedded into LibWeb. --- Libraries/LibJS/Bytecode/Interpreter.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Libraries/LibJS/Bytecode/Interpreter.cpp b/Libraries/LibJS/Bytecode/Interpreter.cpp index 23ee67ce3dc..8e3890c44f2 100644 --- a/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -303,14 +303,6 @@ ThrowCompletionOr Interpreter::run(Script& script_record, GC::Ptr