S12.6.3_A11.1_T3.js (847B)
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 9 "var-loop" breaks 10 es5id: 12.6.3_A11.1_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#1 23 outer:for(var index=0;index<4;index+=1){ 24 nested:for(var 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 //////////////////////////////////////////////////////////////////////////////