ladybird/Tests/LibJS/Bytecode
Andreas Kling 47e552e8fd LibJS: Consolidate TDZ check emission into Generator helper
Move the duplicated ThrowIfTDZ emission logic from three places in
ASTCodegen.cpp into a single Generator::emit_tdz_check_if_needed()
helper. This handles both argument TDZ (which requires a Mov to
empty first) and lexically-declared variable TDZ uniformly.

This avoids emitting some unnecessary ThrowIfTDZ instructions.
2026-02-17 20:44:57 +01:00
..
expected LibJS: Consolidate TDZ check emission into Generator helper 2026-02-17 20:44:57 +01:00
input Tests/LibJS: Add a big pile of AST, bytecode, and runtime tests 2026-02-17 20:44:57 +01:00
output LibJS: Move tests to /Tests/LibJS 2026-01-22 07:46:48 -05:00