Commit graph

3 commits

Author SHA1 Message Date
Andreas Kling
5a7853099e LibJS: Support .mjs files in test-js-ast and test-js-bytecode
Automatically pass --as-module to the js binary when the test input
file has a .mjs extension. This allows us to write AST and bytecode
tests for module-only syntax like import and export statements.
2026-02-19 12:02:50 +01:00
Andreas Kling
fdd7809bd1 Tests/LibJS: Add a big pile of AST, bytecode, and runtime tests
Created these while experimenting with LibJS. Might as well bring them
into the tree and increase our coverage.
2026-02-17 20:44:57 +01:00
Andreas Kling
5f032e7450 Tests/LibJS: Add test-js-ast infrastructure
Add a test runner for AST dump tests, modeled after test-js-bytecode.
Tests consist of JS input files and expected AST dump output, verified
by parsing with --parse-only --dump-ast --disable-ansi-colors.
2026-02-10 02:05:20 +01:00