2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2014-07-22 01:09:02 +02:00
|
|
|
If (Evaluate Statement).type is "continue" and (Evaluate
|
|
|
|
Statement).target is in the current label set, iteration of labeled loop
|
|
|
|
breaks
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 12.6.3_A11_T2
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Embedded loops
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2014-08-05 17:38:52 +02:00
|
|
|
var __str, index, index_n;
|
2011-09-07 08:35:18 +02:00
|
|
|
__str="";
|
|
|
|
|
|
|
|
outer : for(index=0; index<4; index+=1) {
|
|
|
|
nested : for(index_n=0; index_n<=index; index_n++) {
|
|
|
|
if (index*index_n == 6)continue nested;
|
|
|
|
__str+=""+index+index_n;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//CHECK#1
|
|
|
|
if (__str !== "001011202122303133") {
|
2021-07-22 21:58:54 +02:00
|
|
|
throw new Test262Error('#1: __str === "001011202122303133". Actual: __str ==='+ __str );
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
__str="";
|
|
|
|
|
|
|
|
outer : for(index=0; index<4; index+=1) {
|
|
|
|
nested : for(index_n=0; index_n<=index; index_n++) {
|
|
|
|
if (index*index_n == 6)continue outer;
|
|
|
|
__str+=""+index+index_n;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//CHECK#2
|
|
|
|
if (__str !== "0010112021223031") {
|
2021-07-22 21:58:54 +02:00
|
|
|
throw new Test262Error('#2: __str === "0010112021223031". Actual: __str ==='+ __str );
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
__str="";
|
|
|
|
|
|
|
|
outer : for(index=0; index<4; index+=1) {
|
|
|
|
nested : for(index_n=0; index_n<=index; index_n++) {
|
|
|
|
if (index*index_n == 6)continue ;
|
|
|
|
__str+=""+index+index_n;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//CHECK#3
|
|
|
|
if (__str !== "001011202122303133") {
|
2021-07-22 21:58:54 +02:00
|
|
|
throw new Test262Error('#3: __str === "001011202122303133". Actual: __str ==='+ __str );
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|