You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Pull Request fixes/closes#5054
It changes the following:
- Move `tests/tester/src/exec/js262.rs` to `core/runtime/src/test262.rs`
so it can be reused by both cli and boa_tester
- Add `--test262-object` flag to CLI
- Add `print()` to CLI with `--test262-object`
- Enable `[[CanBlock]]` by default in CLI to match boa_tester as well as
d8/jsc/sm shells default behavior
- Add `--no-can-block` flag to CLI to support Atomics CanBlockIsFalse
tests (same flag name as d8 has)
- Auto-detect .mjs files as modules in CLI (a small optional
quality-of-life improvement; matches behavior of most other major JS
engine shells)
These changes make it possible to reproduce boa_tester's test262 results
using external test262 harnesses with boa cli binary.
--flowgraph-direction <FORMAT> Specifies the direction of the flowgraph. Default is top-top-bottom [possible values: top-to-bottom, bottom-to-top, left-to-right, right-to-left]
166
166
--debug-object Inject debugging object `$boa`
167
+
--test262-object Inject the test262 host object `$262`
167
168
-m, --module Treats the input files as modules
168
169
-r, --root <ROOT> Root path from where the module resolver will try to load the modules [default: .]
--flowgraph-direction <FORMAT> Specifies the direction of the flowgraph. Default is top-top-bottom [possible values: top-to-bottom, bottom-to-top, left-to-right, right-to-left]
60
60
--debug-object Inject debugging object `$boa`
61
+
--test262-object Inject the test262 host object `$262`
61
62
-m, --module Treats the input files as modules
62
63
-r, --root <ROOT> Root path from where the module resolver will try to load the modules [default: .]
63
64
-e, --expression <EXPR> Execute a JavaScript expression then exit
0 commit comments