Java Reference
In-Depth Information
Table 10-1. ( continued )
Option
Description
--early-lvalue-error
Reports invalid lvalue expressions as early errors
when the code is parsed. By default, it is set to true .
When set to false, invalid lvalue expressions are
reported when the code is executed.
--empty-statements
Preserves empty statements in the Java abstract
syntax tree (AST). By default, it is set to false .
-fv
-fullversion
Prints the full version of the Nashorn engine.
--function-statement-error Prints an error message when a function declaration
is used as a statement. The default is set to false .
--function-statement-warning Prints a warning message when a function declaration
is used as a statement. The default is set to false .
-fx
Launches the script as a JavaFX application.
--global-per-engine
Uses a single global instance per script engine
instance. The default is false .
-help
-h
Outputs the help message and exits.
-J<flag>
Passes the specified <flag> to the JVM.
-language
Specifies the ECMAScript language version. Valid
values are es5 and es6 . The default is es5 .
--lazy-compilation
Enables lazy code generation strategies by not
compiling the entire script at once. The default is true .
--loader-per-compile
Creates a new class loader per compile. The default
is true .
-l
--locale
Sets the locale for script execution. The default is
en-US .
--log=subsystem:lebel
Enables logging of a given level for a given number
of subsystems, for example, --log=fields:finest,
codegen:info . Logging for multiple subsystems are
separated by commas.
-nj
--no-java
Disables Java support. The default is false , meaning
that using Java classes in scripts are allowed.
-nse
--no-syntax-extensions
Disallows nonstandard syntax extensions. The
default is false .
( continued )
Search WWH ::




Custom Search