src/jdk/nashorn/internal/runtime/resources/Options.properties

Print this page

        

@@ -57,11 +57,11 @@
 ## short_name - the short name of the option, e.g. "-l"
 ## type - the type of the option, currently allowed: boolean, integer, string, log, timezone. defaults to boolean if left out
 ## is_undocumented - should this option never appear in the online help. defaults to no.
 ## desc - description of what the option does
 ## default - default value of the option. e.g. debug.lines is true by default. Not set means option not available by default
-## dependency - does this arg imply another arg, e.g. scripting -> anon-functions
+## dependency - does this arg imply another arg.
 ## confict - does this arg conflict with another arg e.g trace && instrument
 ## value_next_arg - is the opton's value passed as next argument in command line?
 ##
 ## At least short_name or name needs to be in place for an argument descriptor to be valid.
 

@@ -75,20 +75,13 @@
     name="-xhelp",                                     \
     is_undocumented=true,                              \
     desc="Print extended help for command line flags." \
 }
 
-nashorn.option.anon.functions = {                \
-    name="--anon-functions",                     \
-    short_name="-af",                            \
-    is_undocumented=true,                        \
-    desc="Always allow functions as statements." \
-}
-
 nashorn.option.class.cache.size ={                            \
     name="--class-cache-size",                                \
-    short_name="--ccs",                                       \
+    short_name="-ccs",                                        \
     desc="Size of the Class cache size per global scope.",    \
     is_undocumented=true,                                     \
     type=Integer,                                             \
     default=50                                                \
 }

@@ -199,14 +192,14 @@
     default=true                                   \
 }
 
 nashorn.option.no.syntax.extensions = {            \
     name="--no-syntax-extensions",                 \
-    short_name="--nse",                            \
+    short_name="-nse",                             \
     is_undocumented=true,                          \
     desc="No non-standard syntax extensions",      \
-    default=-anon-functions=false                  \
+    default=false                                  \
 }
 
 nashorn.option.package = {                                     \
     name="--package",                                          \
     is_undocumented=true,                                      \

@@ -294,12 +287,11 @@
     desc="Run scripts in strict mode." \
 }
 
 nashorn.option.scripting = {            \
     name="-scripting",                  \
-    desc="Enable scripting features.",  \
-    dependency="--anon-functions=true"  \
+    desc="Enable scripting features."   \
 }
 
 nashorn.option.specialize.calls = {                                                \
     name="--specialize-calls",                                                     \
     is_undocumented=true,                                                          \