ladybird/Libraries/LibJS/Bytecode/Tests
dosisod bc823878c7 LibJS: Add bytecode IR regression tests
This adds a new `test-js-bytecode` target which ensures that codegen
changes do not impact emitted bytecode IR, or if it does, it is known
and the tests are updated accordingly.

Similar to the LibWeb tests, the tests are stored in the following
format:

* `Libraries/LibJS/Bytecode/Tests/input`: Input `.js` files
* `Libraries/LibJS/Bytecode/Tests/expected`: Expected `.txt` bytecode
* `Libraries/LibJS/Bytecode/Tests/output`: Emitted `.txt` bytecode

The `output` dir is git-ignored, but stores the output so you can diff
and inspect failed tests more easily.

There is only one test so far, which is a baseline test that should not
change dramatically unless we change the bytecode output format.
2026-01-22 08:44:24 +01:00
..
expected LibJS: Add bytecode IR regression tests 2026-01-22 08:44:24 +01:00
input LibJS: Add bytecode IR regression tests 2026-01-22 08:44:24 +01:00
output LibJS: Add bytecode IR regression tests 2026-01-22 08:44:24 +01:00