S12.6.3_A7.1_T2.js (835B)
1 // |reftest| error:SyntaxError 2 // Copyright 2009 the Sputnik authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 info: | 7 Only three expressions and two semicolons in "for(with var)" braces are allowed. 8 Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError 9 es5id: 12.6.3_A7.1_T2 10 description: > 11 Checking if execution of "for(var index=0; index<10; index+=4; 12 index++; index--)" fails 13 negative: 14 phase: parse 15 type: SyntaxError 16 ---*/ 17 18 $DONOTEVALUATE(); 19 20 ////////////////////////////////////////////////////////////////////////////// 21 //CHECK#1 22 for(var index=0; index<10; index+=4; index++; index--) ; 23 // 24 //////////////////////////////////////////////////////////////////////////////