Debian Codegraph @

js/src/tests/test262/language/asi/S7.9_A6.2_T8.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 Check For Statement for automatic semicolon insertion.
8 If automatic insertion semicolon would become one of the two semicolons in the header of a For Statement.
9 Use one semicolon
10 es5id: 7.9_A6.2_T8
11 description: For header is (false \n semicolon false \n)
12 negative:
13 phase: parse
14 type: SyntaxError
15 ---*/
16
17 $DONOTEVALUATE();
18
19 //CHECK#1
20 for(false
21 ;false
22 ) {
23 break;
24 }