|
1 // Copyright 2009 the Sputnik authors. All rights reserved. |
|
2 // This code is governed by the BSD license found in the LICENSE file. |
|
3 |
|
4 /** |
|
5 * When "continue Identifier" is evaluated Identifier must be label in the label set of an enclosing (but not crossing function boundaries) IterationStatement |
|
6 * |
|
7 * @path ch12/12.7/S12.7_A5_T3.js |
|
8 * @description Identifier is within loop label |
|
9 * @negative |
|
10 */ |
|
11 |
|
12 LABEL_OUT : var x=0, y=0; |
|
13 |
|
14 LABEL_DO_LOOP : do { |
|
15 LABEL_IN : x++; |
|
16 if(x===10)break; |
|
17 continue LABEL_IN; |
|
18 LABEL_IN_2 : y++; |
|
19 function IN_DO_FUNC(){} |
|
20 } while(0); |
|
21 |
|
22 LABEL_ANOTHER_LOOP : do { |
|
23 ; |
|
24 } while(0); |
|
25 |
|
26 function OUT_FUNC(){} |
|
27 |