diff --git a/test/built-ins/parseInt/S15.1.2.2_A8.js b/test/built-ins/parseInt/S15.1.2.2_A8.js index 518e58be64..5cdbb68dc6 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A8.js +++ b/test/built-ins/parseInt/S15.1.2.2_A8.js @@ -30,11 +30,11 @@ for (var index = 0; index <= 65535; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -50,10 +50,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); }