src/jdk/nashorn/internal/runtime/ScriptEnvironment.java

Print this page

        

@@ -54,13 +54,10 @@
     private final Namespace namespace;
 
     /** Current Options object. */
     private final Options options;
 
-    /** Always allow functions as statements */
-    public final boolean _anon_functions;
-
     /** Size of the per-global Class cache size */
     public final int     _class_cache_size;
 
     /** Only compile script, do not run it or generate other ScriptObjects */
     public final boolean _compile_only;

@@ -190,11 +187,10 @@
         this.out = out;
         this.err = err;
         this.namespace = new Namespace();
         this.options = options;
 
-        _anon_functions       = options.getBoolean("anon.functions");
         _class_cache_size     = options.getInteger("class.cache.size");
         _compile_only         = options.getBoolean("compile.only");
         _debug_lines          = options.getBoolean("debug.lines");
         _dest_dir             = options.getString("d");
         _dump_on_error        = options.getBoolean("doe");