Debian Codegraph @

js/src/tests/test262/language/statements/for/S12.6.3_A11_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 "continue" and (Evaluate
8 Statement).target is in the current label set, iteration of labeled loop
9 breaks
10 es5id: 12.6.3_A11_T3
11 description: Trying to continue non-existent label
12 negative:
13 phase: parse
14 type: SyntaxError
15 ---*/
16
17 $DONOTEVALUATE();
18
19 __str="";
20
21 //////////////////////////////////////////////////////////////////////////////
22 //CHECK#
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 == 6)continue nonexist;
26 __str+=""+index+index_n;
27 }
28 }
29 //
30 //////////////////////////////////////////////////////////////////////////////