chore: migrate $ERROR -> throw new Test262Error in test/language/s*

This commit is contained in:
rwaldron 2021-07-22 15:58:54 -04:00 committed by Rick Waldron
parent ad15eca476
commit 4a125f2f4e
443 changed files with 2286 additions and 2286 deletions

View File

@ -8,12 +8,12 @@ description: Test for handling of supplementary characters
var chars = "𐒠"; // Single Unicode character at codepoint \u{104A0} var chars = "𐒠"; // Single Unicode character at codepoint \u{104A0}
if(chars.length !== 2) { if(chars.length !== 2) {
$ERROR("A character outside the BMP (Unicode CodePoint > 0xFFFF) should consume two code units"); throw new Test262Error("A character outside the BMP (Unicode CodePoint > 0xFFFF) should consume two code units");
} }
if(chars.charCodeAt(0) !== 0xD801) { if(chars.charCodeAt(0) !== 0xD801) {
$ERROR("First code unit of surrogate pair for 0x104A0 should be 0xD801"); throw new Test262Error("First code unit of surrogate pair for 0x104A0 should be 0xD801");
} }
if(chars.charCodeAt(1) !== 0xDCA0) { if(chars.charCodeAt(1) !== 0xDCA0) {
$ERROR("Second code unit of surrogate pair for 0x104A0 should be 0xDCA0"); throw new Test262Error("Second code unit of surrogate pair for 0x104A0 should be 0xDCA0");
} }

View File

@ -25,10 +25,10 @@ assert.throws(ReferenceError, function() {
//CHECK#2 //CHECK#2
try { try {
throw "catchme"; throw "catchme";
$ERROR('#2: throw "catchme" lead to throwing exception'); throw new Test262Error('#2: throw "catchme" lead to throwing exception');
} catch (e) { } catch (e) {
if (e!=="catchme") { if (e!=="catchme") {
$ERROR('#2.1: Exception === "catchme". Actual: Exception ==='+ e ); throw new Test262Error('#2.1: Exception === "catchme". Actual: Exception ==='+ e );
} }
} }

View File

@ -15,10 +15,10 @@ try {
throw 1; throw 1;
throw 2; throw 2;
throw 3; throw 3;
$ERROR('1.1: throw 1 lead to throwing exception'); throw new Test262Error('1.1: throw 1 lead to throwing exception');
} catch (e) { } catch (e) {
if (e!==1) { if (e!==1) {
$ERROR('#1.2: Exception === 1. Actual: Exception ==='+ e); throw new Test262Error('#1.2: Exception === 1. Actual: Exception ==='+ e);
} }
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -31,10 +31,10 @@ try {
throw 2; throw 2;
} }
throw 3; throw 3;
$ERROR('#2.1: throw 1 lead to throwing exception'); throw new Test262Error('#2.1: throw 1 lead to throwing exception');
} catch (e) { } catch (e) {
if (e!==1) { if (e!==1) {
$ERROR('#2.2: Exception === 1. Actual: Exception ==='+ e); throw new Test262Error('#2.2: Exception === 1. Actual: Exception ==='+ e);
} }
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -47,10 +47,10 @@ try {
throw 2; throw 2;
throw 3; throw 3;
} }
$ERROR('#3.1: throw 1 lead to throwing exception'); throw new Test262Error('#3.1: throw 1 lead to throwing exception');
} catch (e) { } catch (e) {
if (e!==1) { if (e!==1) {
$ERROR('#3.2: Exception === 1. Actual: Exception ==='+ e); throw new Test262Error('#3.2: Exception === 1. Actual: Exception ==='+ e);
} }
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

View File

@ -26,7 +26,7 @@ function OUT_FUNC(){}
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if ((x!==2)&&(y!==0)) { if ((x!==2)&&(y!==0)) {
$ERROR('#1: x === 2 and y === 0. Actual: x ==='+x+' and y ==='+y); throw new Test262Error('#1: x === 2 and y === 0. Actual: x ==='+x+' and y ==='+y);
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -29,7 +29,7 @@ function OUT_FUNC(){}
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if ((x!==1)&&(y!==0)) { if ((x!==1)&&(y!==0)) {
$ERROR('#1: x === 1 and y === 0. Actual: x === '+x+' and y ==='+ y ); throw new Test262Error('#1: x === 1 and y === 0. Actual: x === '+x+' and y ==='+ y );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -35,7 +35,7 @@ function OUT_FUNC(){}
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if ((x!==1)&&(y!==1)&&(xx!==1)&(yy!==0)) { if ((x!==1)&&(y!==1)&&(xx!==1)&(yy!==0)) {
$ERROR('#1: x === 1 and y === 1 and xx === 1 and yy === 0. Actual: x==='+x+' and y==='+y+' and xx==='+xx+' and yy==='+yy ); throw new Test262Error('#1: x === 1 and y === 1 and xx === 1 and yy === 0. Actual: x==='+x+' and y==='+y+' and xx==='+xx+' and yy==='+yy );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -35,7 +35,7 @@ function OUT_FUNC(){}
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if ((x!==1)&&(y!==0)&&(xx!==1)&(yy!==0)) { if ((x!==1)&&(y!==0)&&(xx!==1)&(yy!==0)) {
$ERROR('#1: x === 1 and y === 0 and xx === 1 and yy === 0. Actual: x==='+x+' and y==='+y+' and xx==='+xx+' and yy==='+yy ); throw new Test262Error('#1: x === 1 and y === 0 and xx === 1 and yy === 0. Actual: x==='+x+' and y==='+y+' and xx==='+xx+' and yy==='+yy );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -19,10 +19,10 @@ try{
eval("break LABEL1"); eval("break LABEL1");
y++; y++;
} while(0); } while(0);
$ERROR('#1: eval("break LABEL1") does not lead to throwing exception'); throw new Test262Error('#1: eval("break LABEL1") does not lead to throwing exception');
} catch(e){ } catch(e){
if(!(e instanceof SyntaxError)){ if(!(e instanceof SyntaxError)){
$ERROR("1.1: Appearing of break within eval statement inside of IterationStatement yields SyntaxError"); throw new Test262Error("1.1: Appearing of break within eval statement inside of IterationStatement yields SyntaxError");
} }
} }
// //

View File

@ -26,7 +26,7 @@ FOR : for(;;){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (x!==1) { if (x!==1) {
$ERROR('#1: break inside of try-catch nested in loop is allowed'); throw new Test262Error('#1: break inside of try-catch nested in loop is allowed');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -26,7 +26,7 @@ FOR : for(;;){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (x!==1) { if (x!==1) {
$ERROR('#1: break inside of try-catch nested in loop is allowed'); throw new Test262Error('#1: break inside of try-catch nested in loop is allowed');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -8,7 +8,7 @@ description: >
var Base = function() {}.bind(); var Base = function() {}.bind();
Object.defineProperty(Base, 'prototype', { Object.defineProperty(Base, 'prototype', {
set: function() { set: function() {
$ERROR("Cannot create a setter property named `prototype`"); throw new Test262Error("Cannot create a setter property named `prototype`");
} }
}); });
assert.throws(TypeError, function() { assert.throws(TypeError, function() {

View File

@ -9,7 +9,7 @@ features: [Symbol.iterator]
---*/ ---*/
Array.prototype[Symbol.iterator] = function() { Array.prototype[Symbol.iterator] = function() {
$ERROR('@@iterator invoked'); throw new Test262Error('@@iterator invoked');
}; };
class Base { class Base {

View File

@ -9,7 +9,7 @@ function Base() {}
Base.prototype = { Base.prototype = {
set constructor(_) { set constructor(_) {
$ERROR("`Base.prototype.constructor` is unreachable."); throw new Test262Error("`Base.prototype.constructor` is unreachable.");
} }
}; };

View File

@ -9,7 +9,7 @@ function Base() {}
Base.prototype = { Base.prototype = {
set m(_) { set m(_) {
$ERROR("`Base.prototype.m` is unreachable."); throw new Test262Error("`Base.prototype.m` is unreachable.");
} }
}; };

View File

@ -8,7 +8,7 @@ description: >
function Base() {} function Base() {}
Object.defineProperty(Base, 'staticM', { Object.defineProperty(Base, 'staticM', {
set: function() { set: function() {
$ERROR("`Base.staticM` is unreachable."); throw new Test262Error("`Base.staticM` is unreachable.");
} }
}); });

View File

@ -19,10 +19,10 @@ try{
eval("continue LABEL1"); eval("continue LABEL1");
y++; y++;
} while(0); } while(0);
$ERROR('#1: eval("continue LABEL1") does not lead to throwing exception'); throw new Test262Error('#1: eval("continue LABEL1") does not lead to throwing exception');
} catch(e){ } catch(e){
if(!(e instanceof SyntaxError)){ if(!(e instanceof SyntaxError)){
$ERROR("1.1: Appearing of continue within eval statement inside of IterationStatement yields SyntaxError"); throw new Test262Error("1.1: Appearing of continue within eval statement inside of IterationStatement yields SyntaxError");
} }
} }
// //

View File

@ -26,7 +26,7 @@ FOR : for(;;){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (x!==10) { if (x!==10) {
$ERROR('#1: Continue inside of try-catch nested in loop is allowed'); throw new Test262Error('#1: Continue inside of try-catch nested in loop is allowed');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -24,7 +24,7 @@ FOR : for(;;){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (x!==10) { if (x!==10) {
$ERROR('#1: Continue inside of try-catch nested in loop is allowed'); throw new Test262Error('#1: Continue inside of try-catch nested in loop is allowed');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -16,7 +16,7 @@ do __in__do=1; while ( false );
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__in__do!==1) { if (__in__do!==1) {
$ERROR('#1: the inner statement of a do-loop should be evaluated before the expression: false evaluates to false'); throw new Test262Error('#1: the inner statement of a do-loop should be evaluated before the expression: false evaluates to false');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -26,7 +26,7 @@ do __in__do=2; while ( 0 );
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__in__do!==2) { if (__in__do!==2) {
$ERROR('#2: the inner statement of a do-loop should be evaluated before the expression: 0 evaluates to false'); throw new Test262Error('#2: the inner statement of a do-loop should be evaluated before the expression: 0 evaluates to false');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -36,7 +36,7 @@ do __in__do=3; while ( "" );
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#3 //CHECK#3
if (__in__do!==3) { if (__in__do!==3) {
$ERROR('#3: the inner statement of a do-loop should be evaluated before the expression: "" evaluates to false'); throw new Test262Error('#3: the inner statement of a do-loop should be evaluated before the expression: "" evaluates to false');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -23,7 +23,7 @@ do {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (check !== 1) { if (check !== 1) {
$ERROR('#1: FunctionExpression within a "do-while" statement is allowed, but no function with the given name will appear in the global context'); throw new Test262Error('#1: FunctionExpression within a "do-while" statement is allowed, but no function with the given name will appear in the global context');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -15,7 +15,7 @@ do {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__in__do !== 1) { if (__in__do !== 1) {
$ERROR('#1: "{}" in do-while expression evaluates to true'); throw new Test262Error('#1: "{}" in do-while expression evaluates to true');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -21,7 +21,7 @@ do{
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__reached !== 1) { if (__reached !== 1) {
$ERROR('#2: function expession inside of do-while expression is allowed'); throw new Test262Error('#2: function expession inside of do-while expression is allowed');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -21,7 +21,7 @@ do{
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__reached !== 1) { if (__reached !== 1) {
$ERROR('#2: function expession inside of do-while expression is allowed'); throw new Test262Error('#2: function expession inside of do-while expression is allowed');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -13,7 +13,7 @@ var __in__do;
try { try {
do __in__do = "reached"; while (abbracadabra); do __in__do = "reached"; while (abbracadabra);
$ERROR('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception'); throw new Test262Error('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception');
} catch (e) { } catch (e) {
if (e instanceof Test262Error) throw e; if (e instanceof Test262Error) throw e;
} }
@ -21,7 +21,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__in__do !== "reached") { if (__in__do !== "reached") {
$ERROR('#1.1: __in__do === "reached". Actual: __in__do ==='+ __in__do ); throw new Test262Error('#1.1: __in__do === "reached". Actual: __in__do ==='+ __in__do );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -16,7 +16,7 @@ __evaluated = eval("do __in__do=1; while (false)");
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK# //CHECK#
if (__in__do !== 1) { if (__in__do !== 1) {
$ERROR('#1: __in__do === 1. Actual: __in__do ==='+ __in__do ); throw new Test262Error('#1: __in__do === 1. Actual: __in__do ==='+ __in__do );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -24,7 +24,7 @@ if (__in__do !== 1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__evaluated !== 1) { if (__evaluated !== 1) {
$ERROR('#2: __evaluated === 1. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#2: __evaluated === 1. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -20,7 +20,7 @@ do {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__in__do__before__break !== "reached") { if (__in__do__before__break !== "reached") {
$ERROR('#1: __in__do__before__break === "reached". Actual: __in__do__before__break ==='+ __in__do__before__break ); throw new Test262Error('#1: __in__do__before__break === "reached". Actual: __in__do__before__break ==='+ __in__do__before__break );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -28,7 +28,7 @@ if (__in__do__before__break !== "reached") {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (typeof __in__do__after__break !== "undefined") { if (typeof __in__do__after__break !== "undefined") {
$ERROR('#2: typeof __in__do__after__break === "undefined". Actual: typeof __in__do__after__break ==='+ typeof __in__do__after__break ); throw new Test262Error('#2: typeof __in__do__after__break === "undefined". Actual: typeof __in__do__after__break ==='+ typeof __in__do__after__break );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -22,7 +22,7 @@ do_out : do {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)) { if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)) {
$ERROR('#1: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)===true. Actual: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)==='+ (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break) ); throw new Test262Error('#1: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)===true. Actual: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)==='+ (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break) );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -22,7 +22,7 @@ do_out : do {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&!__in__do__after__break)) { if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&!__in__do__after__break)) {
$ERROR('#1: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&!__in__do__after__break)===true. Actual: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&!__in__do__after__break)==='+ (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&!__in__do__after__break) ); throw new Test262Error('#1: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&!__in__do__after__break)===true. Actual: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&!__in__do__after__break)==='+ (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&!__in__do__after__break) );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -22,7 +22,7 @@ do_out : do {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)) { if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)) {
$ERROR('#1: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)===true. Actual: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)==='+ (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break) ); throw new Test262Error('#1: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)===true. Actual: (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break)==='+ (__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after__break&&__in__do__after__break) );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -14,7 +14,7 @@ __evaluated = eval("do {__in__do__before__break=1; break; __in__do__after__break
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__in__do__before__break !== 1) { if (__in__do__before__break !== 1) {
$ERROR('#1: __in__do__before__break === 1. Actual: __in__do__before__break ==='+ __in__do__before__break ); throw new Test262Error('#1: __in__do__before__break === 1. Actual: __in__do__before__break ==='+ __in__do__before__break );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -22,7 +22,7 @@ if (__in__do__before__break !== 1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (typeof __in__do__after__break !== "undefined") { if (typeof __in__do__after__break !== "undefined") {
$ERROR('#2: typeof __in__do__after__break === "undefined". Actual: typeof __in__do__after__break ==='+ typeof __in__do__after__break ); throw new Test262Error('#2: typeof __in__do__after__break === "undefined". Actual: typeof __in__do__after__break ==='+ typeof __in__do__after__break );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -30,7 +30,7 @@ if (typeof __in__do__after__break !== "undefined") {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#3 //CHECK#3
if (__evaluated !== 1) { if (__evaluated !== 1) {
$ERROR('#3: __evaluated === 1. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#3: __evaluated === 1. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -17,7 +17,7 @@ __evaluated = eval("do eval(\"__condition++\"); while (__condition<5)");
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__condition !== 5) { if (__condition !== 5) {
$ERROR('#1: The "do-while" statement is evaluted according to the Standard '); throw new Test262Error('#1: The "do-while" statement is evaluted according to the Standard ');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -25,7 +25,7 @@ if (__condition !== 5) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__evaluated !== 4) { if (__evaluated !== 4) {
$ERROR('#2: The "do-while" statement returns (normal, V, empty)'); throw new Test262Error('#2: The "do-while" statement returns (normal, V, empty)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -15,7 +15,7 @@ __evaluated = eval("do { __condition++; if (((''+__condition/2).split('.')).leng
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__odds !== 5) { if (__odds !== 5) {
$ERROR('#1: __odds === 5. Actual: __odds ==='+ __odds ); throw new Test262Error('#1: __odds === 5. Actual: __odds ==='+ __odds );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -23,7 +23,7 @@ if (__odds !== 5) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__evaluated !== 4) { if (__evaluated !== 4) {
$ERROR('#2: __evaluated === 4. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#2: __evaluated === 4. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -14,14 +14,14 @@ try {
var x = 1; var x = 1;
abaracadabara; abaracadabara;
} while(0); } while(0);
$ERROR('#1: "abbracadabra" lead to throwing exception'); throw new Test262Error('#1: "abbracadabra" lead to throwing exception');
} catch (e) { } catch (e) {
if (e instanceof Test262Error) throw e; if (e instanceof Test262Error) throw e;
} }
if (x !== 1) { if (x !== 1) {
$ERROR('#1.1: x === 1. Actual: x ==='+ x ); throw new Test262Error('#1.1: x === 1. Actual: x ==='+ x );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -20,7 +20,7 @@ __evaluated = eval("x+1+x==1");
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__evaluated !== false) { if (__evaluated !== false) {
$ERROR('#1: __evaluated === false. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#1: __evaluated === false. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -30,7 +30,7 @@ __evaluated = eval("1+1+1==1");
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__evaluated !== false) { if (__evaluated !== false) {
$ERROR('#2: __evaluated === false. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#2: __evaluated === false. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -20,7 +20,7 @@ __evaluated = eval(x);
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__evaluated !== 7) { if (__evaluated !== 7) {
$ERROR('#1: __evaluated === 7. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#1: __evaluated === 7. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -30,7 +30,7 @@ __evaluated = eval("2*"+x+">-1");
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__evaluated !== 11) { if (__evaluated !== 11) {
$ERROR('#2: __evaluated === 11. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#2: __evaluated === 11. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -14,7 +14,7 @@ try {
var key=__key; var key=__key;
}; };
} catch (e) { } catch (e) {
$ERROR('#1: "for(key in undefined){}" does not lead to throwing exception'); throw new Test262Error('#1: "for(key in undefined){}" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -23,7 +23,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (key!==undefined) { if (key!==undefined) {
$ERROR('#2: key === undefined. Actual: key === '+key); throw new Test262Error('#2: key === undefined. Actual: key === '+key);
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -20,7 +20,7 @@ for(x in function __func(){return {a:1};}()){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__reached !== "a") { if (__reached !== "a") {
$ERROR('#2: function expession inside of for-in expression allowed'); throw new Test262Error('#2: function expession inside of for-in expression allowed');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -14,7 +14,7 @@ try {
var key=__key; var key=__key;
}; };
} catch (e) { } catch (e) {
$ERROR('#1: "for(__key in null){}" does not lead to throwing exception'); throw new Test262Error('#1: "for(__key in null){}" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -22,7 +22,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (key!==undefined) { if (key!==undefined) {
$ERROR('#2: key === undefined. Actual: key ==='+key); throw new Test262Error('#2: key === undefined. Actual: key ==='+key);
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -19,7 +19,7 @@ __evaluated = eval("for(var ind in (arr=[2,1,4,3]))__str+=arr[ind]");
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__evaluated !== __str) { if (__evaluated !== __str) {
$ERROR('#1: __evaluated === __str. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#1: __evaluated === __str. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -27,7 +27,7 @@ if (__evaluated !== __str) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (!( (__str.indexOf("2")!==-1)&&(__str.indexOf("1")!==-1)&&(__str.indexOf("4")!==-1)&&(__str.indexOf("3")!==-1) )) { if (!( (__str.indexOf("2")!==-1)&&(__str.indexOf("1")!==-1)&&(__str.indexOf("4")!==-1)&&(__str.indexOf("3")!==-1) )) {
$ERROR('#2: (__str.indexOf("2")!==-1)&&(__str.indexOf("1")!==-1)&&(__str.indexOf("4")!==-1)&&(__str.indexOf("3")!==-1)'); throw new Test262Error('#2: (__str.indexOf("2")!==-1)&&(__str.indexOf("1")!==-1)&&(__str.indexOf("4")!==-1)&&(__str.indexOf("3")!==-1)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -19,7 +19,7 @@ __evaluated = eval("for(ind in (arr=[2,1,4,3]))__str+=arr[ind]");
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__evaluated !== __str) { if (__evaluated !== __str) {
$ERROR('#1: __evaluated === __str. Actual: __evaluated ==='+ __evaluated ); throw new Test262Error('#1: __evaluated === __str. Actual: __evaluated ==='+ __evaluated );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -27,7 +27,7 @@ if (__evaluated !== __str) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (!( (__str.indexOf("2")!==-1)&&(__str.indexOf("1")!==-1)&&(__str.indexOf("4")!==-1)&&(__str.indexOf("3")!==-1) )) { if (!( (__str.indexOf("2")!==-1)&&(__str.indexOf("1")!==-1)&&(__str.indexOf("4")!==-1)&&(__str.indexOf("3")!==-1) )) {
$ERROR('#2: (__str.indexOf("2")!==-1)&&(__str.indexOf("1")!==-1)&&(__str.indexOf("4")!==-1)&&(__str.indexOf("3")!==-1)'); throw new Test262Error('#2: (__str.indexOf("2")!==-1)&&(__str.indexOf("1")!==-1)&&(__str.indexOf("4")!==-1)&&(__str.indexOf("3")!==-1)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -17,7 +17,7 @@ __evaluated = eval("for(var ind in (hash={2:'b',1:'a',4:'d',3:'c'}))__str+=hash[
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if ( !( (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__evaluated.indexOf("c")!==-1)&(__evaluated.indexOf("d")!==-1) ) ) { if ( !( (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__evaluated.indexOf("c")!==-1)&(__evaluated.indexOf("d")!==-1) ) ) {
$ERROR('#1: (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__evaluated.indexOf("c")!==-1)&(__evaluated.indexOf("d")!==-1)'); throw new Test262Error('#1: (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__evaluated.indexOf("c")!==-1)&(__evaluated.indexOf("d")!==-1)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -25,7 +25,7 @@ if ( !( (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__eva
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str !== __evaluated) { if (__str !== __evaluated) {
$ERROR('#2: __str === __evaluated. Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === __evaluated. Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -17,7 +17,7 @@ __evaluated = eval("for(ind in (hash={2:'b',1:'a',4:'d',3:'c'}))__str+=hash[ind]
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if ( !( (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__evaluated.indexOf("c")!==-1)&(__evaluated.indexOf("d")!==-1) ) ) { if ( !( (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__evaluated.indexOf("c")!==-1)&(__evaluated.indexOf("d")!==-1) ) ) {
$ERROR('#1: (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__evaluated.indexOf("c")!==-1)&(__evaluated.indexOf("d")!==-1)'); throw new Test262Error('#1: (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__evaluated.indexOf("c")!==-1)&(__evaluated.indexOf("d")!==-1)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -25,7 +25,7 @@ if ( !( (__evaluated.indexOf("a")!==-1)& (__evaluated.indexOf("b")!==-1)& (__eva
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str !== __evaluated) { if (__str !== __evaluated) {
$ERROR('#2: __str === __evaluated. Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === __evaluated. Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -40,4 +40,4 @@ if(!(
(__arr.indexOf("db2")!==-1)& (__arr.indexOf("db2")!==-1)&
(__arr.indexOf("dc3")!==-1)& (__arr.indexOf("dc3")!==-1)&
(__arr.indexOf("dd4")!==-1) (__arr.indexOf("dd4")!==-1)
)) $ERROR('#1: The nested for-in Statement applied to hierarchial object works properly as described in the Standard'); )) throw new Test262Error('#1: The nested for-in Statement applied to hierarchial object works properly as described in the Standard');

View File

@ -40,4 +40,4 @@ if(!(
(__arr.indexOf("db2")!==-1)& (__arr.indexOf("db2")!==-1)&
(__arr.indexOf("dc3")!==-1)& (__arr.indexOf("dc3")!==-1)&
(__arr.indexOf("dd4")!==-1) (__arr.indexOf("dd4")!==-1)
)) $ERROR('#1: The nested for-in Statement applied to hierarchial object works properly as described in the Standard'); )) throw new Test262Error('#1: The nested for-in Statement applied to hierarchial object works properly as described in the Standard');

View File

@ -28,7 +28,7 @@ for (var key in __instance){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (!((__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum.indexOf("hinthinted")!==-1))) { if (!((__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum.indexOf("hinthinted")!==-1))) {
$ERROR('#1: (__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum.indexOf("hinthinted")!==-1)'); throw new Test262Error('#1: (__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum.indexOf("hinthinted")!==-1)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -36,7 +36,7 @@ if (!((__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__accum.indexOf("hintprotohint")!==-1) { if (__accum.indexOf("hintprotohint")!==-1) {
$ERROR('#2: __accum.indexOf("hintprotohint") === -1. Actual: __accum.indexOf("hintprotohint") ==='+ __accum.indexOf("hintprotohint") ); throw new Test262Error('#2: __accum.indexOf("hintprotohint") === -1. Actual: __accum.indexOf("hintprotohint") ==='+ __accum.indexOf("hintprotohint") );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -28,7 +28,7 @@ for (key in __instance){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (!((__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum.indexOf("hinthinted")!==-1))) { if (!((__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum.indexOf("hinthinted")!==-1))) {
$ERROR('#1: (__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum.indexOf("hinthinted")!==-1)'); throw new Test262Error('#1: (__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum.indexOf("hinthinted")!==-1)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -36,7 +36,7 @@ if (!((__accum.indexOf("prop1")!==-1)&&(__accum.indexOf("feat2")!==-1)&&(__accum
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__accum.indexOf("hintprotohint")!==-1) { if (__accum.indexOf("hintprotohint")!==-1) {
$ERROR('#2: __accum.indexOf("hintprotohint") === -1. Actual: __accum.indexOf("hintprotohint") ==='+ __accum.indexOf("hintprotohint") ); throw new Test262Error('#2: __accum.indexOf("hintprotohint") === -1. Actual: __accum.indexOf("hintprotohint") ==='+ __accum.indexOf("hintprotohint") );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -29,7 +29,7 @@ for (__key in __obj){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (!((__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1))) { if (!((__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1))) {
$ERROR('#1: (__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1)'); throw new Test262Error('#1: (__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -37,7 +37,7 @@ if (!((__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1))) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__accum.indexOf("ba2")!==-1) { if (__accum.indexOf("ba2")!==-1) {
$ERROR('#2: __accum.indexOf("ba2") === -1. Actual: __accum.indexOf("ba2") ==='+ __accum.indexOf("ba2") ); throw new Test262Error('#2: __accum.indexOf("ba2") === -1. Actual: __accum.indexOf("ba2") ==='+ __accum.indexOf("ba2") );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -29,7 +29,7 @@ for (var __key in __obj){
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (!((__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1))) { if (!((__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1))) {
$ERROR('#1: (__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1)'); throw new Test262Error('#1: (__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1)');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -37,7 +37,7 @@ if (!((__accum.indexOf("aa1")!==-1)&&(__accum.indexOf("ca3")!==-1))) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__accum.indexOf("ba2")!==-1) { if (__accum.indexOf("ba2")!==-1) {
$ERROR('#2: __accum.indexOf("ba2") === -1. Actual: __accum.indexOf("ba2") ==='+ __accum.indexOf("ba2") ); throw new Test262Error('#2: __accum.indexOf("ba2") === -1. Actual: __accum.indexOf("ba2") ==='+ __accum.indexOf("ba2") );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -22,10 +22,10 @@ for (var x of iterator) {
} catch (err) { } catch (err) {
i++; i++;
break; break;
$ERROR('This code is unreachable (following `break` statement).'); throw new Test262Error('This code is unreachable (following `break` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -21,10 +21,10 @@ for (var x of iterator) {
i++; i++;
break; break;
$ERROR('This code is unreachable (following `break` statement).'); throw new Test262Error('This code is unreachable (following `break` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -20,10 +20,10 @@ for (var x of iterator) {
i++; i++;
break; break;
$ERROR('This code is unreachable (following `break` statement).'); throw new Test262Error('This code is unreachable (following `break` statement).');
} catch (err) {} } catch (err) {}
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -23,13 +23,13 @@ while (true) {
} catch (err) { } catch (err) {
i++; i++;
break outer; break outer;
$ERROR('This code is unreachable (following `break` statement).'); throw new Test262Error('This code is unreachable (following `break` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..of` statement).'); throw new Test262Error('This code is unreachable (following `for..of` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -22,13 +22,13 @@ while (true) {
} finally { } finally {
i++; i++;
break outer; break outer;
$ERROR('This code is unreachable (following `break` statement).'); throw new Test262Error('This code is unreachable (following `break` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..of` statement).'); throw new Test262Error('This code is unreachable (following `for..of` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -21,13 +21,13 @@ while (true) {
try { try {
i++; i++;
break outer; break outer;
$ERROR('This code is unreachable (following `break` statement).'); throw new Test262Error('This code is unreachable (following `break` statement).');
} catch (err) {} } catch (err) {}
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..of` statement).'); throw new Test262Error('This code is unreachable (following `for..of` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -21,9 +21,9 @@ while (true) {
i++; i++;
break outer; break outer;
$ERROR('This code is unreachable (following `break` statement).'); throw new Test262Error('This code is unreachable (following `break` statement).');
} }
$ERROR('This code is unreachable (following `for..of` statement).'); throw new Test262Error('This code is unreachable (following `for..of` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -9,7 +9,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -18,7 +18,7 @@ for (var x of iterator) {
i++; i++;
break; break;
$ERROR('This code is unreachable.'); throw new Test262Error('This code is unreachable.');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -22,10 +22,10 @@ for (var x of iterator) {
i++; i++;
continue; continue;
$ERROR('This code is unreachable (following `continue` statement).'); throw new Test262Error('This code is unreachable (following `continue` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
assert.sameValue(i, 2); assert.sameValue(i, 2);

View File

@ -23,10 +23,10 @@ for (var x of iterator) {
i++; i++;
continue; continue;
$ERROR('This code is unreachable (following `continue` statement).'); throw new Test262Error('This code is unreachable (following `continue` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
assert.sameValue(i, 2); assert.sameValue(i, 2);

View File

@ -20,10 +20,10 @@ for (var x of iterator) {
i++; i++;
continue; continue;
$ERROR('This code is unreachable (following `continue` statement).'); throw new Test262Error('This code is unreachable (following `continue` statement).');
} catch (err) {} } catch (err) {}
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
assert.sameValue(i, 2); assert.sameValue(i, 2);

View File

@ -26,13 +26,13 @@ while (loop) {
} catch (err) { } catch (err) {
i++; i++;
continue outer; continue outer;
$ERROR('This code is unreachable (following `continue` statement).'); throw new Test262Error('This code is unreachable (following `continue` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..of` statement).'); throw new Test262Error('This code is unreachable (following `for..of` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -28,13 +28,13 @@ while (loop) {
i++; i++;
continue outer; continue outer;
$ERROR('This code is unreachable (following `continue` statement).'); throw new Test262Error('This code is unreachable (following `continue` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..of` statement).'); throw new Test262Error('This code is unreachable (following `for..of` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -23,13 +23,13 @@ while (loop) {
try { try {
i++; i++;
continue outer; continue outer;
$ERROR('This code is unreachable (following `continue` statement).'); throw new Test262Error('This code is unreachable (following `continue` statement).');
} catch (err) {} } catch (err) {}
$ERROR('This code is unreachable (following `try` statment).'); throw new Test262Error('This code is unreachable (following `try` statment).');
} }
$ERROR('This code is unreachable (following `for..of` statement).'); throw new Test262Error('This code is unreachable (following `for..of` statement).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -23,9 +23,9 @@ while (loop) {
i++; i++;
continue outer; continue outer;
$ERROR('This code is unreachable (inside for-of).'); throw new Test262Error('This code is unreachable (inside for-of).');
} }
$ERROR('This code is unreachable (inside while).'); throw new Test262Error('This code is unreachable (inside while).');
} }
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -18,7 +18,7 @@ for (var x of iterator) {
i++; i++;
continue; continue;
$ERROR('This code is unreachable.'); throw new Test262Error('This code is unreachable.');
} }
assert.sameValue(i, 2); assert.sameValue(i, 2);

View File

@ -15,11 +15,11 @@ function* values() {
startedCount += 1; startedCount += 1;
try { try {
yield; yield;
$ERROR('This code is unreachable (within `try` block)'); throw new Test262Error('This code is unreachable (within `try` block)');
} finally { } finally {
finallyCount += 1; finallyCount += 1;
} }
$ERROR('This code is unreachable (following `try` statement)'); throw new Test262Error('This code is unreachable (following `try` statement)');
} }
var iterable = values(); var iterable = values();

View File

@ -31,11 +31,11 @@ function* values() {
startedCount += 1; startedCount += 1;
try { try {
yield; yield;
$ERROR('This code is unreachable (within `try` block)'); throw new Test262Error('This code is unreachable (within `try` block)');
} finally { } finally {
finallyCount += 1; finallyCount += 1;
} }
$ERROR('This code is unreachable (following `try` statement)'); throw new Test262Error('This code is unreachable (following `try` statement)');
} }
var iterable = values(); var iterable = values();

View File

@ -15,11 +15,11 @@ function* values() {
startedCount += 1; startedCount += 1;
try { try {
yield; yield;
$ERROR('This code is unreachable (within `try` block)'); throw new Test262Error('This code is unreachable (within `try` block)');
} finally { } finally {
finallyCount += 1; finallyCount += 1;
} }
$ERROR('This code is unreachable (following `try` statement)'); throw new Test262Error('This code is unreachable (following `try` statement)');
} }
var iterable = values(); var iterable = values();

View File

@ -15,11 +15,11 @@ function* values() {
startedCount += 1; startedCount += 1;
try { try {
yield; yield;
$ERROR('This code is unreachable (within `try` block)'); throw new Test262Error('This code is unreachable (within `try` block)');
} finally { } finally {
finallyCount += 1; finallyCount += 1;
} }
$ERROR('This code is unreachable (following `try` statement)'); throw new Test262Error('This code is unreachable (following `try` statement)');
} }
var iterable = values(); var iterable = values();

View File

@ -80,11 +80,11 @@ firstIterResult = new Proxy({}, {
if (name === 'value') { if (name === 'value') {
return null; return null;
} }
$ERROR('This code is unreachable.'); throw new Test262Error('This code is unreachable.');
} }
}); });
for (var x of iterable) { for (var x of iterable) {
$ERROR('This code is unreachable.'); throw new Test262Error('This code is unreachable.');
} }
firstIterResult = new Proxy({}, { firstIterResult = new Proxy({}, {
@ -95,7 +95,7 @@ firstIterResult = new Proxy({}, {
if (name === 'value') { if (name === 'value') {
return 23; return 23;
} }
$ERROR('This code is unreachable.'); throw new Test262Error('This code is unreachable.');
} }
}); });
var i = 0; var i = 0;

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -23,13 +23,13 @@ var result = (function() {
i++; i++;
return 34; return 34;
$ERROR('This code is unreachable (following `return` statement).'); throw new Test262Error('This code is unreachable (following `return` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..in` statement).'); throw new Test262Error('This code is unreachable (following `for..in` statement).');
})(); })();
assert.sameValue(result, 34); assert.sameValue(result, 34);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -22,13 +22,13 @@ var result = (function() {
i++; i++;
return 34; return 34;
$ERROR('This code is unreachable (following `return` statement).'); throw new Test262Error('This code is unreachable (following `return` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..in` statement).'); throw new Test262Error('This code is unreachable (following `for..in` statement).');
})(); })();
assert.sameValue(result, 34); assert.sameValue(result, 34);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -21,15 +21,15 @@ var result = (function() {
i++; i++;
return 34; return 34;
$ERROR('This code is unreachable (following `return` statement).'); throw new Test262Error('This code is unreachable (following `return` statement).');
} catch(err) { } catch(err) {
$ERROR('This code is unreachable (within `catch` block).'); throw new Test262Error('This code is unreachable (within `catch` block).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..in` statement).'); throw new Test262Error('This code is unreachable (following `for..in` statement).');
})(); })();
assert.sameValue(result, 34); assert.sameValue(result, 34);

View File

@ -9,7 +9,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var iterator = values(); var iterator = values();
var i = 0; var i = 0;
@ -19,10 +19,10 @@ var result = (function() {
i++; i++;
return 34; return 34;
$ERROR('This code is unreachable (following `return` statement).'); throw new Test262Error('This code is unreachable (following `return` statement).');
} }
$ERROR('This code is unreachable (following `for..of` statement).'); throw new Test262Error('This code is unreachable (following `for..of` statement).');
})(); })();
assert.sameValue(result, 34); assert.sameValue(result, 34);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var CustomError = function() {}; var CustomError = function() {};
var iterator = values(); var iterator = values();
@ -25,13 +25,13 @@ assert.throws(CustomError, function() {
i++; i++;
throw error; throw error;
$ERROR('This code is unreachable (following `throw` statement).'); throw new Test262Error('This code is unreachable (following `throw` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..in` statement).'); throw new Test262Error('This code is unreachable (following `for..in` statement).');
}); });
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -10,7 +10,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var CustomError = function() {}; var CustomError = function() {};
var iterator = values(); var iterator = values();
@ -24,13 +24,13 @@ assert.throws(CustomError, function() {
i++; i++;
throw error; throw error;
$ERROR('This code is unreachable (following `throw` statement).'); throw new Test262Error('This code is unreachable (following `throw` statement).');
} }
$ERROR('This code is unreachable (following `try` statement).'); throw new Test262Error('This code is unreachable (following `try` statement).');
} }
$ERROR('This code is unreachable (following `for..in` statement).'); throw new Test262Error('This code is unreachable (following `for..in` statement).');
}); });
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -9,7 +9,7 @@ features: [generators]
function* values() { function* values() {
yield 1; yield 1;
$ERROR('This code is unreachable (following `yield` statement).'); throw new Test262Error('This code is unreachable (following `yield` statement).');
} }
var CustomError = function() {}; var CustomError = function() {};
var iterator = values(); var iterator = values();
@ -21,10 +21,10 @@ assert.throws(CustomError, function() {
i++; i++;
throw error; throw error;
$ERROR('This code is unreachable (following `throw` statement).'); throw new Test262Error('This code is unreachable (following `throw` statement).');
} }
$ERROR('This code is unreachable (following `for..in` statement).'); throw new Test262Error('This code is unreachable (following `for..in` statement).');
}); });
assert.sameValue(i, 1); assert.sameValue(i, 1);

View File

@ -17,7 +17,7 @@ var controlIterator = (function*() {
for (var x of dataIterator) { for (var x of dataIterator) {
try { try {
throw new Error(); throw new Error();
$ERROR('This code is unreachable.'); throw new Test262Error('This code is unreachable.');
} catch (err) { } catch (err) {
i++; i++;
yield; yield;

View File

@ -17,7 +17,7 @@ var controlIterator = (function*() {
for (var x of dataIterator) { for (var x of dataIterator) {
try { try {
throw new Error(); throw new Error();
$ERROR('This code is unreachable.'); throw new Test262Error('This code is unreachable.');
} catch (err) { } catch (err) {
i++; i++;
yield * values(); yield * values();

View File

@ -20,7 +20,7 @@ try {
} }
} catch (e) { } catch (e) {
if (e !== 1) { if (e !== 1) {
$ERROR('#1: for {;;} is admitted and leads to infinite loop'); throw new Test262Error('#1: for {;;} is admitted and leads to infinite loop');
} }
} }
// //
@ -29,7 +29,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__in__for !== 101) { if (__in__for !== 101) {
$ERROR('#2: __in__for === 101. Actual: __in__for ==='+ __in__for ); throw new Test262Error('#2: __in__for === 101. Actual: __in__for ==='+ __in__for );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -15,7 +15,7 @@ flags: [noStrict]
try { try {
__in__deepest__loop=__in__deepest__loop; __in__deepest__loop=__in__deepest__loop;
} catch (e) { } catch (e) {
$ERROR('#1: "__in__deepest__loop=__in__deepest__loop" does not lead to throwing exception'); throw new Test262Error('#1: "__in__deepest__loop=__in__deepest__loop" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -25,7 +25,7 @@ try {
try { try {
index0=index0; index0=index0;
} catch (e) { } catch (e) {
$ERROR('#2: "index0=index0" does not lead to throwing exception'); throw new Test262Error('#2: "index0=index0" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -35,7 +35,7 @@ try {
try { try {
index1=index1; index1=index1;
} catch (e) { } catch (e) {
$ERROR('#3: "index1=index1" does not lead to throwing exception'); throw new Test262Error('#3: "index1=index1" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -45,7 +45,7 @@ try {
try { try {
index4=index4; index4=index4;
} catch (e) { } catch (e) {
$ERROR('#4: "index4=index4" does not lead to throwing exception'); throw new Test262Error('#4: "index4=index4" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -55,7 +55,7 @@ try {
try { try {
index5=index5; index5=index5;
} catch (e) { } catch (e) {
$ERROR('#4: "index5=index5" does not lead to throwing exception'); throw new Test262Error('#4: "index5=index5" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -65,7 +65,7 @@ try {
try { try {
index7=index7; index7=index7;
} catch (e) { } catch (e) {
$ERROR('#6: "index7=index7" does not lead to throwing exception'); throw new Test262Error('#6: "index7=index7" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -75,7 +75,7 @@ try {
try { try {
index8=index8; index8=index8;
} catch (e) { } catch (e) {
$ERROR('#7: "index8=index8" does not lead to throwing exception'); throw new Test262Error('#7: "index8=index8" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -106,7 +106,7 @@ for( var index0=0; index0<=1; index0++) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n111100000\n111100001\n111110000\n111110001\n111111000\n111111001\n111111100\n111111101\n111111110\n111111111\n") { if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n111100000\n111100001\n111110000\n111110001\n111111000\n111111001\n111111100\n111111101\n111111110\n111111111\n") {
$ERROR('#2: __str === "000000000\\n100000000\\n110000000\\n110000001\\n111000000\\n111000001\\n111100000\\n111100001\\n111110000\\n111110001\\n111111000\\n111111001\\n111111100\\n111111101\\n111111110\\n111111111\\n". Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === "000000000\\n100000000\\n110000000\\n110000001\\n111000000\\n111000001\\n111100000\\n111100001\\n111110000\\n111110001\\n111111000\\n111111001\\n111111100\\n111111101\\n111111110\\n111111111\\n". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -16,7 +16,7 @@ var __str, index2, index3, index6;
try { try {
__in__deepest__loop=__in__deepest__loop; __in__deepest__loop=__in__deepest__loop;
} catch (e) { } catch (e) {
$ERROR('#1: "__in__deepest__loop=__in__deepest__loop" does not lead to throwing exception'); throw new Test262Error('#1: "__in__deepest__loop=__in__deepest__loop" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -26,7 +26,7 @@ try {
try { try {
index0=index0; index0=index0;
} catch (e) { } catch (e) {
$ERROR('#2: "index0=index0" does not lead to throwing exception'); throw new Test262Error('#2: "index0=index0" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -36,7 +36,7 @@ try {
try { try {
index1=index1; index1=index1;
} catch (e) { } catch (e) {
$ERROR('#3: "index1=index1" does not lead to throwing exception'); throw new Test262Error('#3: "index1=index1" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -46,7 +46,7 @@ try {
try { try {
index4=index4; index4=index4;
} catch (e) { } catch (e) {
$ERROR('#4: "index4=index4" does not lead to throwing exception'); throw new Test262Error('#4: "index4=index4" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -56,7 +56,7 @@ try {
try { try {
index5=index5; index5=index5;
} catch (e) { } catch (e) {
$ERROR('#4: "index5=index5" does not lead to throwing exception'); throw new Test262Error('#4: "index5=index5" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -66,7 +66,7 @@ try {
try { try {
index7=index7; index7=index7;
} catch (e) { } catch (e) {
$ERROR('#6: "index7=index7" does not lead to throwing exception'); throw new Test262Error('#6: "index7=index7" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -76,7 +76,7 @@ try {
try { try {
index8=index8; index8=index8;
} catch (e) { } catch (e) {
$ERROR('#7: "index8=index8" does not lead to throwing exception'); throw new Test262Error('#7: "index8=index8" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -107,7 +107,7 @@ for( var index0=0; index0<=1; index0++) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n111100000\n111100001\n111110000\n111110001\n111111000\n111111001\n111111100\n111111101\n111111110\n111111111\n") { if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n111100000\n111100001\n111110000\n111110001\n111111000\n111111001\n111111100\n111111101\n111111110\n111111111\n") {
$ERROR('#2: __str === "000000000\\n100000000\\n110000000\\n110000001\\n111000000\\n111000001\\n111100000\\n111100001\\n111110000\\n111110001\\n111111000\\n111111001\\n111111100\\n111111101\\n111111110\\n111111111\\n". Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === "000000000\\n100000000\\n110000000\\n110000001\\n111000000\\n111000001\\n111100000\\n111100001\\n111110000\\n111110001\\n111111000\\n111111001\\n111111100\\n111111101\\n111111110\\n111111111\\n". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -15,7 +15,7 @@ flags: [noStrict]
try { try {
__in__deepest__loop=__in__deepest__loop; __in__deepest__loop=__in__deepest__loop;
} catch (e) { } catch (e) {
$ERROR('#1: "__in__deepest__loop=__in__deepest__loop" does not lead to throwing exception'); throw new Test262Error('#1: "__in__deepest__loop=__in__deepest__loop" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -46,7 +46,7 @@ for( index0=0; index0<=1; index0++) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n111100000\n111100001\n111110000\n111110001\n111111000\n111111001\n111111100\n111111101\n111111110\n111111111\n") { if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n111100000\n111100001\n111110000\n111110001\n111111000\n111111001\n111111100\n111111101\n111111110\n111111111\n") {
$ERROR('#2: __str === "000000000\\n100000000\\n110000000\\n110000001\\n111000000\\n111000001\\n111100000\\n111100001\\n111110000\\n111110001\\n111111000\\n111111001\\n111111100\\n111111101\\n111111110\\n111111111\\n". Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === "000000000\\n100000000\\n110000000\\n110000001\\n111000000\\n111000001\\n111100000\\n111100001\\n111110000\\n111110001\\n111111000\\n111111001\\n111111100\\n111111101\\n111111110\\n111111111\\n". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -16,7 +16,7 @@ var __str, index0, index1, index2, index3, index4, index5, index6, index7, index
try { try {
__in__deepest__loop=__in__deepest__loop; __in__deepest__loop=__in__deepest__loop;
} catch (e) { } catch (e) {
$ERROR('#1: "__in__deepest__loop=__in__deepest__loop" does not lead to throwing exception'); throw new Test262Error('#1: "__in__deepest__loop=__in__deepest__loop" does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -47,7 +47,7 @@ for( index0=0; index0<=1; index0++) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n111100000\n111100001\n111110000\n111110001\n111111000\n111111001\n111111100\n111111101\n111111110\n111111111\n") { if (__str!== "000000000\n100000000\n110000000\n110000001\n111000000\n111000001\n111100000\n111100001\n111110000\n111110001\n111111000\n111111001\n111111100\n111111101\n111111110\n111111111\n") {
$ERROR('#2: __str === "000000000\\n100000000\\n110000000\\n110000001\\n111000000\\n111000001\\n111100000\\n111100001\\n111110000\\n111110001\\n111111000\\n111111001\\n111111100\\n111111101\\n111111110\\n111111111\\n". Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === "000000000\\n100000000\\n110000000\\n110000001\\n111000000\\n111000001\\n111100000\\n111100001\\n111110000\\n111110001\\n111111000\\n111111001\\n111111100\\n111111101\\n111111110\\n111111111\\n". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -19,5 +19,5 @@ for(var index=0; index<10; index+=1) {
} }
if (__str!=="56789") { if (__str!=="56789") {
$ERROR('#1: __str === "56789". Actual: __str ==='+ __str ); throw new Test262Error('#1: __str === "56789". Actual: __str ==='+ __str );
} }

View File

@ -23,7 +23,7 @@ outer : for(var index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__str !== "001011202122303133") { if (__str !== "001011202122303133") {
$ERROR('#1: __str === "001011202122303133". Actual: __str ==='+ __str ); throw new Test262Error('#1: __str === "001011202122303133". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -39,7 +39,7 @@ outer : for(var index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str !== "0010112021223031") { if (__str !== "0010112021223031") {
$ERROR('#2: __str === "0010112021223031". Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === "0010112021223031". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -56,7 +56,7 @@ outer : for(var index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#3 //CHECK#3
if (__str !== "001011202122303133") { if (__str !== "001011202122303133") {
$ERROR('#3: __str === "001011202122303133". Actual: __str ==='+ __str ); throw new Test262Error('#3: __str === "001011202122303133". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -19,5 +19,5 @@ for(index=0; index<10; index+=1) {
} }
if (__str!=="56789") { if (__str!=="56789") {
$ERROR('#1: __str === "56789". Actual: __str ==='+ __str ); throw new Test262Error('#1: __str === "56789". Actual: __str ==='+ __str );
} }

View File

@ -23,7 +23,7 @@ outer : for(index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__str !== "001011202122303133") { if (__str !== "001011202122303133") {
$ERROR('#1: __str === "001011202122303133". Actual: __str ==='+ __str ); throw new Test262Error('#1: __str === "001011202122303133". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -39,7 +39,7 @@ outer : for(index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str !== "0010112021223031") { if (__str !== "0010112021223031") {
$ERROR('#2: __str === "0010112021223031". Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === "0010112021223031". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -56,7 +56,7 @@ outer : for(index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#3 //CHECK#3
if (__str !== "001011202122303133") { if (__str !== "001011202122303133") {
$ERROR('#3: __str === "001011202122303133". Actual: __str ==='+ __str ); throw new Test262Error('#3: __str === "001011202122303133". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -19,5 +19,5 @@ for(var index=0; index<10; index+=1) {
} }
if (__str!=="012345") { if (__str!=="012345") {
$ERROR('#1: __str === "012345". Actual: __str ==='+ __str ); throw new Test262Error('#1: __str === "012345". Actual: __str ==='+ __str );
} }

View File

@ -23,7 +23,7 @@ outer : for(var index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__str !== "00101120213031") { if (__str !== "00101120213031") {
$ERROR('#1: __str === "00101120213031". Actual: __str ==='+ __str ); throw new Test262Error('#1: __str === "00101120213031". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -40,7 +40,7 @@ outer : for(var index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str !== "0010112021") { if (__str !== "0010112021") {
$ERROR('#2: __str === "0010112021". Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === "0010112021". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -57,7 +57,7 @@ outer : for(var index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#3 //CHECK#3
if (__str !== "00101120213031") { if (__str !== "00101120213031") {
$ERROR('#3: __str === "00101120213031". Actual: __str ==='+ __str ); throw new Test262Error('#3: __str === "00101120213031". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -19,5 +19,5 @@ for(index=0; index<10; index+=1) {
} }
if (__str!=="012345") { if (__str!=="012345") {
$ERROR('#1:__str === "012345". Actual: __str ==='+__str ); throw new Test262Error('#1:__str === "012345". Actual: __str ==='+__str );
} }

View File

@ -23,7 +23,7 @@ outer : for(index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__str !== "00101120213031") { if (__str !== "00101120213031") {
$ERROR('#1: __str === "00101120213031". Actual: __str ==='+ __str ); throw new Test262Error('#1: __str === "00101120213031". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -40,7 +40,7 @@ outer : for(index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__str !== "0010112021") { if (__str !== "0010112021") {
$ERROR('#2: __str === "0010112021". Actual: __str ==='+ __str ); throw new Test262Error('#2: __str === "0010112021". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -57,7 +57,7 @@ outer : for(index=0; index<4; index+=1) {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#3 //CHECK#3
if (__str !== "00101120213031") { if (__str !== "00101120213031") {
$ERROR('#3: __str === "00101120213031". Actual: __str ==='+ __str ); throw new Test262Error('#3: __str === "00101120213031". Actual: __str ==='+ __str );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -14,7 +14,7 @@ description: Declaring variable in "for" ExpressionNoIn
try { try {
index = index; index = index;
} catch (e) { } catch (e) {
$ERROR('#1: VariableDeclaration in "var VariableDeclarationListNoIn" of for IterationStatement is allowed'); throw new Test262Error('#1: VariableDeclaration in "var VariableDeclarationListNoIn" of for IterationStatement is allowed');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -11,36 +11,36 @@ description: Using +,*,/, as the second Expression
//CHECK#1 //CHECK#1
for(var i=0;i<10;i++){} for(var i=0;i<10;i++){}
if (i!==10) $ERROR('#1: i === 10. Actual: i ==='+ i ); if (i!==10) throw new Test262Error('#1: i === 10. Actual: i ==='+ i );
//CHECK#2 //CHECK#2
var j=0; var j=0;
for(var i=1;i<10;i*=2){ for(var i=1;i<10;i*=2){
j++; j++;
} }
if (i!==16) $ERROR('#2.1: i === 16. Actual: i ==='+ i ); if (i!==16) throw new Test262Error('#2.1: i === 16. Actual: i ==='+ i );
if (j!==4) $ERROR('#2.2: j === 4. Actual: j ==='+ j ); if (j!==4) throw new Test262Error('#2.2: j === 4. Actual: j ==='+ j );
//CHECK#3 //CHECK#3
var j=0; var j=0;
for(var i=16;i>1;i=i/2){ for(var i=16;i>1;i=i/2){
j++; j++;
} }
if (i!==1) $ERROR('#3.1: i === 1. Actual: i ==='+ i ); if (i!==1) throw new Test262Error('#3.1: i === 1. Actual: i ==='+ i );
if (j!==4) $ERROR('#3.2: j === 4. Actual: j ==='+ j ); if (j!==4) throw new Test262Error('#3.2: j === 4. Actual: j ==='+ j );
//CHECK#4 //CHECK#4
var j=0; var j=0;
for(var i=10;i>1;i--){ for(var i=10;i>1;i--){
j++; j++;
} }
if (i!==1) $ERROR('#4.1: i === 1. Actual: i ==='+ i ); if (i!==1) throw new Test262Error('#4.1: i === 1. Actual: i ==='+ i );
if (j!==9) $ERROR('#4.2: j === 9. Actual: j ==='+ j ); if (j!==9) throw new Test262Error('#4.2: j === 9. Actual: j ==='+ j );
//CHECK#5 //CHECK#5
var j=0; var j=0;
for(var i=2;i<10;i*=i){ for(var i=2;i<10;i*=i){
j++; j++;
} }
if (i!==16) $ERROR('#5.1: i === 16. Actual: i ==='+ i ); if (i!==16) throw new Test262Error('#5.1: i === 16. Actual: i ==='+ i );
if (j!==2) $ERROR('#5.2: j === 2. Actual: j ==='+ j ); if (j!==2) throw new Test262Error('#5.2: j === 2. Actual: j ==='+ j );

View File

@ -14,10 +14,10 @@ for(var i=0;i<10;i++){
i*=2; i*=2;
break; break;
} }
if (i!==0) $ERROR('#1: i === 0. Actual: i ==='+ i ); if (i!==0) throw new Test262Error('#1: i === 0. Actual: i ==='+ i );
//CHECK#2 //CHECK#2
for(var i=0;i<10;i++){ for(var i=0;i<10;i++){
i*=2; i*=2;
if (i===3) $ERROR('#2: i !== 3'); if (i===3) throw new Test262Error('#2: i !== 3');
} }

View File

@ -15,10 +15,10 @@ try {
for((function(){throw "NoInExpression"})(); ;(function(){throw "SecondExpression"})()) { for((function(){throw "NoInExpression"})(); ;(function(){throw "SecondExpression"})()) {
throw "Statement"; throw "Statement";
} }
$ERROR('#1: (function(){throw "NoInExpression"})() lead to throwing exception'); throw new Test262Error('#1: (function(){throw "NoInExpression"})() lead to throwing exception');
} catch (e) { } catch (e) {
if (e !== "NoInExpression") { if (e !== "NoInExpression") {
$ERROR('#2: When for (ExpressionNoIn ; ; Expression) Statement is evaluated NoInExpression evaluates first'); throw new Test262Error('#2: When for (ExpressionNoIn ; ; Expression) Statement is evaluated NoInExpression evaluates first');
} }
} }
// //

View File

@ -15,10 +15,10 @@ try {
for((function(){throw "NoInExpression"})();;) { for((function(){throw "NoInExpression"})();;) {
throw "Statement"; throw "Statement";
} }
$ERROR('#1: (function(){throw "NoInExpression"})() lead to throwing exception'); throw new Test262Error('#1: (function(){throw "NoInExpression"})() lead to throwing exception');
} catch (e) { } catch (e) {
if (e !== "NoInExpression") { if (e !== "NoInExpression") {
$ERROR('#1: When for (ExpressionNoIn ; ; ) Statement is evaluated NoInExpression evaluates first'); throw new Test262Error('#1: When for (ExpressionNoIn ; ; ) Statement is evaluated NoInExpression evaluates first');
} }
} }
// //

View File

@ -15,10 +15,10 @@ try {
for((function(){throw "NoInExpression";})(); (function(){throw "FirstExpression";})(); (function(){throw "SecondExpression";})()) { for((function(){throw "NoInExpression";})(); (function(){throw "FirstExpression";})(); (function(){throw "SecondExpression";})()) {
var in_for = "reached"; var in_for = "reached";
} }
$ERROR('#1: (function(){throw "NoInExpression";})() lead to throwing exception'); throw new Test262Error('#1: (function(){throw "NoInExpression";})() lead to throwing exception');
} catch (e) { } catch (e) {
if (e !== "NoInExpression") { if (e !== "NoInExpression") {
$ERROR('#1: When for (ExpressionNoIn ; Expression ; Expression) Statement is evaluated ExpressionNoIn evaluates first'); throw new Test262Error('#1: When for (ExpressionNoIn ; Expression ; Expression) Statement is evaluated ExpressionNoIn evaluates first');
} }
} }
// //
@ -27,7 +27,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (in_for !== undefined) { if (in_for !== undefined) {
$ERROR('#2: in_for === undefined. Actual: in_for ==='+ in_for ); throw new Test262Error('#2: in_for === undefined. Actual: in_for ==='+ in_for );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -18,10 +18,10 @@ try {
for((function(){__in__NotInExpression__ = "checked";__in__NotInExpression__2 = "passed";})(); (function(){throw "FirstExpression"})(); (function(){throw "SecondExpression"})()) { for((function(){__in__NotInExpression__ = "checked";__in__NotInExpression__2 = "passed";})(); (function(){throw "FirstExpression"})(); (function(){throw "SecondExpression"})()) {
__in__for="reached"; __in__for="reached";
} }
$ERROR('#1: (function(){throw "SecondExpression"} lead to throwing exception'); throw new Test262Error('#1: (function(){throw "SecondExpression"} lead to throwing exception');
} catch (e) { } catch (e) {
if (e !== "FirstExpression") { if (e !== "FirstExpression") {
$ERROR('#1: When for (ExpressionNoIn ; FirstExpression ; SecondExpression) Statement is evaluated first evaluates ExpressionNoIn then FirstExpression'); throw new Test262Error('#1: When for (ExpressionNoIn ; FirstExpression ; SecondExpression) Statement is evaluated first evaluates ExpressionNoIn then FirstExpression');
} }
} }
// //
@ -30,7 +30,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if ((__in__NotInExpression__ !== "checked")&(__in__NotInExpression__2!=="passed")) { if ((__in__NotInExpression__ !== "checked")&(__in__NotInExpression__2!=="passed")) {
$ERROR('#2: (__in__NotInExpression__ === "checked")&(__in__NotInExpression__2==="passed")'); throw new Test262Error('#2: (__in__NotInExpression__ === "checked")&(__in__NotInExpression__2==="passed")');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -38,7 +38,7 @@ if ((__in__NotInExpression__ !== "checked")&(__in__NotInExpression__2!=="passed"
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#3 //CHECK#3
if (typeof __in__for !== "undefined") { if (typeof __in__for !== "undefined") {
$ERROR('#3: typeof __in__for === "undefined". Actual: typeof __in__for ==='+ typeof __in__for ); throw new Test262Error('#3: typeof __in__for === "undefined". Actual: typeof __in__for ==='+ typeof __in__for );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -19,7 +19,7 @@ i = 1;
try { try {
for(eval("i in arr");1;) {break;}; for(eval("i in arr");1;) {break;};
} catch (e) { } catch (e) {
$ERROR('#1.1: for(eval("i in arr");1;) {break;}; does not lead to throwing exception'); throw new Test262Error('#1.1: for(eval("i in arr");1;) {break;}; does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -29,7 +29,7 @@ try {
try { try {
for(eval("var i = 1 in arr");1;) {break;}; for(eval("var i = 1 in arr");1;) {break;};
} catch (e) { } catch (e) {
$ERROR('#2.1: for(eval("var i = 1 in arr");1;) {break;}; does not lead to throwing exception'); throw new Test262Error('#2.1: for(eval("var i = 1 in arr");1;) {break;}; does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -39,7 +39,7 @@ try {
try { try {
for(eval("1 in arr");1;) {break;}; for(eval("1 in arr");1;) {break;};
} catch (e) { } catch (e) {
$ERROR('#3.1: for(eval("1 in arr");1;) {break;}; does not lead to throwing exception'); throw new Test262Error('#3.1: for(eval("1 in arr");1;) {break;}; does not lead to throwing exception');
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -15,10 +15,10 @@ try {
for(;;(function(){throw "SecondExpression";})()){ for(;;(function(){throw "SecondExpression";})()){
var __in__for = "reached"; var __in__for = "reached";
} }
$ERROR('#1: (function(){throw "SecondExpression"}() lead to throwing exception'); throw new Test262Error('#1: (function(){throw "SecondExpression"}() lead to throwing exception');
} catch (e) { } catch (e) {
if (e !== "SecondExpression") { if (e !== "SecondExpression") {
$ERROR('#1: When for ( ; ; Expression) Statement is evaluated Statement evaluates first then Expression evaluates'); throw new Test262Error('#1: When for ( ; ; Expression) Statement is evaluated Statement evaluates first then Expression evaluates');
} }
} }
// //
@ -27,7 +27,7 @@ try {
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
if (__in__for !== "reached") { if (__in__for !== "reached") {
$ERROR('#2: __in__for === "reached". Actual: __in__for ==='+ __in__for ); throw new Test262Error('#2: __in__for === "reached". Actual: __in__for ==='+ __in__for );
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Some files were not shown because too many files have changed in this diff Show More