ECMAScript Parser Test Suite
JSON →The `test262-parser-tests` package provides a comprehensive, standardized set of test cases specifically designed for evaluating ECMAScript parsers against the official specification. Currently at version 0.0.5, this project is maintained by TC39 and serves as a foundational resource for parser implementers. It categorizes tests into `pass/` for syntactically valid programs, `early/` for programs that adhere to grammar but trigger early errors, and `fail/` for syntactically invalid programs. A unique feature is `pass-explicit/`, offering explicitly parenthesized versions of `pass/` tests for robust equivalence checking of Abstract Syntax Tree (AST) generation. Crucially, these tests are intended solely for parsing validation and are explicitly *not* designed for runtime evaluation; most would throw errors if executed. Its release cadence is generally tied to updates and amendments of the ECMAScript specification, incorporating new syntax or parsing rules as they evolve.
Traffic · last 30 days ↓43% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France