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:
...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.js defaults to an implicit -s, and runs file.js as a script
xs file.mjs defaults to an implicit -m, and runs file.mjs as a module (matching V8, JSC, and Node.js)
- a new flag is added to cover the Test262 cases/directories use case
WDYT?
All other JS engines provided by
jsvusupport running scripts by simply passing a file name with no flags:However,
xsneeds the-sflag:...because "without
-e,-mor-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)WDYT?