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
refactor(runtime): move $262 to boa_runtime, add --test262-object to cli
Move `$262` implementation from `tests/tester/src/exec/js262.rs` to
`core/runtime/src/test262.rs` behind a new `test262` feature gate
(pulls `bus` as optional dep). Add `annex-b` feature to boa_runtime
forwarding to `boa_engine/annex-b` for `$262.IsHTMLDDA`.
Both cli and boa_tester now use `boa_runtime/test262`, removing the
tester's direct `bus` and `boa_gc` deps.
CLI registers `$262` when `--test262-object` flag is passed.
This change makes CLI more suitable for running test262 via an external
harness such as eshost + test262-harness. The exact same `$262` object as
used by the internal boa_tester can now be directly accessed in CLI.
Existing `$boa` object doesn't expose some of the methods (like IsHTMLDDA,
detachArrayBuffer and agent helpers) needed for full test262 support,
and would have required users to maintain a custom shim mapping it to `$262`.
Fixes#5054
--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