ladybird/Tests/LibJS/Bytecode/expected
Andreas Kling ecadf3ce21 LibJS: Inline AsyncIteratorClose with proper Await in for-await-of
The AsyncIteratorClose bytecode op calls async_iterator_close() which
uses synchronous await() internally. This spins the event loop while
execution contexts are on the stack, violating the microtask checkpoint
assertion in LibWeb.

Replace AsyncIteratorClose op emissions in for-await-of close handlers
with inline bytecode that uses the proper Await op, allowing the async
function to yield and resume naturally through the event loop.

For the non-throw path (break/return/continue-to-outer): emit
GetMethod, Call, Await, and ThrowIfNotObject inline.

For the throw path: wrap the close steps in an exception handler so
that any error from GetMethod/Call/Await is discarded and the original
exception is rethrown, per spec step 5.
2026-02-12 11:37:43 +01:00
..
annex-b-function-in-if.txt LibJS: Pre-create SharedFunctionInstanceData in NewFunction 2026-02-11 23:57:41 +01:00
argument-variables.txt Tests/LibJS: Add tests for scope analysis and destructuring 2026-02-10 02:05:20 +01:00
baseline.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00
block-scoping.txt LibJS: Pre-create SharedFunctionInstanceData in NewFunction 2026-02-11 23:57:41 +01:00
captured-variables.txt LibJS: Pre-create SharedFunctionInstanceData in NewFunction 2026-02-11 23:57:41 +01:00
class-environment.txt LibJS: Wire NewClass to ClassBlueprint 2026-02-11 23:57:41 +01:00
class-literal-fields.txt LibJS: Wire NewClass to ClassBlueprint 2026-02-11 23:57:41 +01:00
condition-dead-code-elim.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00
const-fold-template-literals.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00
destructuring-assignment.txt LibJS: Make IteratorClose/AsyncIteratorClose take Operand for value 2026-02-12 11:37:43 +01:00
eval-prevents-locals.txt LibJS: Pre-create SharedFunctionInstanceData in NewFunction 2026-02-11 23:57:41 +01:00
eval-same-function.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00
eval-scope-optimization.txt LibJS: Pre-create SharedFunctionInstanceData in NewFunction 2026-02-11 23:57:41 +01:00
for-loop-scoping.txt LibJS: Pre-create SharedFunctionInstanceData in NewFunction 2026-02-11 23:57:41 +01:00
for-of-iterator-close.txt LibJS: Inline AsyncIteratorClose with proper Await in for-await-of 2026-02-12 11:37:43 +01:00
global-variables.txt Tests/LibJS: Add tests for scope analysis and destructuring 2026-02-10 02:05:20 +01:00
local-variables.txt Tests/LibJS: Add tests for scope analysis and destructuring 2026-02-10 02:05:20 +01:00
named-function-expression.txt LibJS: Pre-create SharedFunctionInstanceData in NewFunction 2026-02-11 23:57:41 +01:00
sequential-try-blocks.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00
switch-scoping.txt LibJS: Pre-create SharedFunctionInstanceData in NewFunction 2026-02-11 23:57:41 +01:00
try-catch-scoping.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00
try-finally-continue.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00
try-finally.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00
with-statement.txt Tests: Rebaseline bytecode tests after handler/finalizer collapse 2026-02-09 16:35:39 +01:00