< prev index next >
src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/Parser.java
Print this page
*** 1256,1268 ****
break;
case SEMICOLON:
break;
default:
if (useBlockScope() && (type == LET || type == CONST)) {
- if (type == LET) {
flags |= ForNode.PER_ITERATION_SCOPE;
- }
// LET/CONST declaration captured in container block created above.
vars = variableStatement(type, false, forStart);
break;
}
if (env._const_as_var && type == CONST) {
--- 1256,1266 ----
< prev index next >