mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 18:30:27 +00:00
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. |
||
|---|---|---|
| .. | ||
| baseline.txt | ||