Debian Codegraph @

js/src/tests/test262/language/statements/for/S12.6.3_A12_T3.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 If (Evaluate Statement).type is "break" and (Evaluate Statement).target
8 is in the current label set, (normal, (Evaluate Statement), empty) is
9 returned while evaluating a loop
10 es5id: 12.6.3_A12_T3
11 description: Trying to break non-existent label
12 negative:
13 phase: parse
14 type: SyntaxError
15 ---*/
16
17 $DONOTEVALUATE();
18
19 __str="";
20
21 //////////////////////////////////////////////////////////////////////////////
22 //CHECK#4
23 outer:for(index=0;index<4;index+=1){
24 nested:for(index_n=0;index_n<=index;index_n++){
25 if(index*index_n >= 4)break nonexist;
26 __str+=""+index+index_n;
27 }
28 };
29 //
30 //////////////////////////////////////////////////////////////////////////////