Files
rust_browser/tests/external/js262/expected/switch-basic.txt
Zachary D. Rowitsch 91bd478a7f Add JavaScript switch/case statement support with break
Implement switch/case/default/break across the JS pipeline:
- Tokens: Switch, Case, Default, Break variants with keyword mapping
- AST: SwitchStmtData, SwitchCase structs and BreakStmt variant
- Parser: parse_switch/parse_break with break_depth validation,
  multiple default clause rejection per ECMA-262 §14.12
- Interpreter: StmtResult::Break with fall-through semantics,
  strict equality matching, var hoisting through cases, and
  break propagation through blocks/if/try-finally

Promotes js262-switch-basic from known_fail to pass (95/110).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 13:29:46 -05:00

2 lines
4 B
Plaintext