-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
All other JS engines provided by jsvu support running scripts by simply passing a file name with no flags:
v8 file.js
chakra file.js
spidermonkey file.js
jsc file.js
However, xs needs the -s flag:
xs -s file.js
...because "without -e, -m or -s, strings are paths to test262 cases or directories".
Since the common case for external users seems to be running scripts, and not tests, can this be reconsidered? Specifically, I'd suggest the following changes:
xs file.jsdefaults to an implicit-s, and runsfile.jsas a scriptxs file.mjsdefaults to an implicit-m, and runsfile.mjsas a module (matching V8, JSC, and Node.js)- a new flag is added to cover the Test262 cases/directories use case
WDYT?
Metadata
Metadata
Assignees
Labels
No labels