From 5ab89bbb55a41e5633565abe1a6df2d0a24fe245 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 29 Jul 2021 14:02:59 -0400 Subject: [PATCH] chore: migrate $ERROR -> throw new Test262Error in test/built-ins/parseInt (#3120) --- test/built-ins/parseInt/S15.1.2.2_A8.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 + ' '); }