nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/Context.java
changeset 37732 3673fec68d16
parent 36517 41a1c20eb619
child 38806 f5be54c0a7c7
equal deleted inserted replaced
37646:84aba7335005 37732:3673fec68d16
  1401 
  1401 
  1402             if (errMan.hasErrors()) {
  1402             if (errMan.hasErrors()) {
  1403                 return null;
  1403                 return null;
  1404             }
  1404             }
  1405 
  1405 
  1406             if (env._print_ast || functionNode.getFlag(FunctionNode.IS_PRINT_AST)) {
  1406             if (env._print_ast || functionNode.getDebugFlag(FunctionNode.DEBUG_PRINT_AST)) {
  1407                 getErr().println(new ASTWriter(functionNode));
  1407                 getErr().println(new ASTWriter(functionNode));
  1408             }
  1408             }
  1409 
  1409 
  1410             if (env._print_parse || functionNode.getFlag(FunctionNode.IS_PRINT_PARSE)) {
  1410             if (env._print_parse || functionNode.getDebugFlag(FunctionNode.DEBUG_PRINT_PARSE)) {
  1411                 getErr().println(new PrintVisitor(functionNode, true, false));
  1411                 getErr().println(new PrintVisitor(functionNode, true, false));
  1412             }
  1412             }
  1413         }
  1413         }
  1414 
  1414 
  1415         if (env._parse_only) {
  1415         if (env._parse_only) {