Debian Codegraph @

js/src/tests/test262/language/statements/for/S12.6.3_A7.1_T1.js

raw
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_T1
10 description: >
11 Checking if execution of "for(var index=0; index<10; index++;
12 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++; index--);
23 //
24 //////////////////////////////////////////////////////////////////////////////