S12.7_A5_T3.js (717B)
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 When "continue Identifier" is evaluated Identifier must be label in the 8 label set of an enclosing (but not crossing function boundaries) 9 IterationStatement 10 es5id: 12.7_A5_T3 11 description: Identifier is within loop label 12 negative: 13 phase: parse 14 type: SyntaxError 15 ---*/ 16 17 $DONOTEVALUATE(); 18 19 LABEL_OUT : var x=0, y=0; 20 21 LABEL_DO_LOOP : do { 22 LABEL_IN : x++; 23 if(x===10)break; 24 continue LABEL_IN; 25 LABEL_IN_2 : y++; 26 function IN_DO_FUNC(){} 27 } while(0); 28 29 LABEL_ANOTHER_LOOP : do { 30 ; 31 } while(0); 32 33 function OUT_FUNC(){}