< prev index next >

src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/OptimisticTypesCalculator.java

Print this page

        

*** 128,138 **** return true; } @Override public boolean enterForNode(final ForNode forNode) { ! if(forNode.isForIn()) { // for..in has the iterable in its "modify" tagNeverOptimistic(forNode.getModify()); } else { // Test is never optimistic (always coerced to boolean). tagNeverOptimisticLoopTest(forNode); --- 128,138 ---- return true; } @Override public boolean enterForNode(final ForNode forNode) { ! if(forNode.isForIn() || forNode.isForOf()) { // for..in has the iterable in its "modify" tagNeverOptimistic(forNode.getModify()); } else { // Test is never optimistic (always coerced to boolean). tagNeverOptimisticLoopTest(forNode);
< prev index next >