Files
rust_browser/tests/external/js262/expected/logical-and.txt
Zachary D. Rowitsch 0b0fb43e09 Add JavaScript logical && / || operators with short-circuit evaluation
Implement logical AND and OR as the third item on the Test262 roadmap's
minimum viable slice. These operators are needed for short-circuit guards
in assert.js/sta.js harness files that every Test262 test includes.

- Add AmpAmp/PipePipe tokens and LogicalAnd/LogicalOr BinaryOp variants
- Parse with correct precedence (assignment > || > && > equality)
- Short-circuit evaluation handled entirely in eval_expr; eval_binary
  uses unreachable!() to enforce that logical ops never reach it
- Promote js262-logical-and and js262-logical-or from known_fail to pass
- Add 23 unit tests covering tokenization, parsing, precedence,
  short-circuit semantics, value preservation, and side-effect skipping
- Update docs: roadmap, feature matrix, and conformance report

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 11:09:57 -05:00

13 B