aboutsummaryrefslogtreecommitdiff
path: root/src/jdk/nashorn/internal/runtime/resources/Options.properties
diff options
context:
space:
mode:
authorattila <none@none>2013-04-29 23:22:20 +0200
committerattila <none@none>2013-04-29 23:22:20 +0200
commit08d1a6c1f2a72f301cbde67932f97a7ea2c45c0e (patch)
treec2a258af416c02ef9a0eba7431c4ca4b18627584 /src/jdk/nashorn/internal/runtime/resources/Options.properties
parent1c5d6ff05d27a21b572f3d9bd8935c452c9ee554 (diff)
downloadnashorn-08d1a6c1f2a72f301cbde67932f97a7ea2c45c0e.tar.gz
8008814: Configurable ignore/warning/error behavior for function declaration as statement
Reviewed-by: jlaskey, sundar
Diffstat (limited to 'src/jdk/nashorn/internal/runtime/resources/Options.properties')
-rw-r--r--src/jdk/nashorn/internal/runtime/resources/Options.properties14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/jdk/nashorn/internal/runtime/resources/Options.properties b/src/jdk/nashorn/internal/runtime/resources/Options.properties
index 820f7788..2b52e8b9 100644
--- a/src/jdk/nashorn/internal/runtime/resources/Options.properties
+++ b/src/jdk/nashorn/internal/runtime/resources/Options.properties
@@ -144,6 +144,20 @@ nashorn.option.fullversion = { \
desc="Print full version info of Nashorn." \
}
+nashorn.option.function.statement.error= { \
+ name="--function-statement-error", \
+ desc="Report an error when function declaration is used as a statement.", \
+ is_undocumented=true, \
+ default=false \
+}
+
+nashorn.option.function.statement.warning = { \
+ name="--function-statement-warning", \
+ desc="Warn when function declaration is used as a statement.", \
+ is_undocumented=true, \
+ default=false \
+}
+
nashorn.option.fx = { \
name="-fx", \
desc="Launch script as an fx application.", \