1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

test-js: Run with the JavaScript bytecode VM by default

The AST interpreter is still available behind a new `--ast` flag.

We switch to testing with bytecode in the big run-tests battery on
SerenityOS. Lagom CI continues running both AST and BC.
This commit is contained in:
Andreas Kling 2023-07-25 18:47:27 +02:00
parent 72516ca101
commit 96d5a1edb0
2 changed files with 8 additions and 8 deletions

View file

@ -667,10 +667,10 @@ if (BUILD_LAGOM)
set_tests_properties(JS PROPERTIES ENVIRONMENT SERENITY_SOURCE_DIR=${SERENITY_PROJECT_ROOT})
add_test(
NAME JS-Bytecode
COMMAND test-js -b --show-progress=false
NAME JS-AST
COMMAND test-js --ast --show-progress=false
)
set_tests_properties(JS-Bytecode PROPERTIES ENVIRONMENT SERENITY_SOURCE_DIR=${SERENITY_PROJECT_ROOT})
set_tests_properties(JS-AST PROPERTIES ENVIRONMENT SERENITY_SOURCE_DIR=${SERENITY_PROJECT_ROOT})
# Extra tests from Tests/LibJS
lagom_test(../../Tests/LibJS/test-invalid-unicode-js.cpp LIBS LibJS)