src/jdk/nashorn/internal/parser/Parser.java

Print this page

        

@@ -1797,10 +1797,11 @@
 
         switch (type) {
         case THIS:
             final String name = type.getName();
             next();
+            lc.setFlag(lc.getCurrentFunction(), FunctionNode.USES_THIS);
             return new IdentNode(primaryToken, finish, name);
         case IDENT:
             final IdentNode ident = getIdent();
             if (ident == null) {
                 break;