From 8afbeda683bfab934073a98ffd05b1c7ce39765d Mon Sep 17 00:00:00 2001 From: rwaldron Date: Thu, 29 Jul 2021 15:18:37 -0400 Subject: [PATCH] chore: migrate $ERROR -> throw new Test262Error in test/language/expressions/assignment/white-space.js --- .../expressions/assignment/white-space.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/language/expressions/assignment/white-space.js b/test/language/expressions/assignment/white-space.js index f531f49866..54dc4f7560 100644 --- a/test/language/expressions/assignment/white-space.js +++ b/test/language/expressions/assignment/white-space.js @@ -36,24 +36,24 @@ if (x !== 'U+00A0') { x = -'Uthrow new Test262Error; +'U+000D'; if (x !== 'U+000D') { - $ERROR('#7: (x\\u000D=\\u000Dtrue) === true'); + throw new Test262Error('#7: (x\\u000D=\\u000Dtrue) === true'); } -x
throw new Test262Error028'; +x
=
'U+2028'; if (x !== 'U+2028') { - $ERROR('#8: (x\\u2028=\\u2028true) === true'); + throw new Test262Error('#8: (x\\u2028=\\u2028true) === true'); } -x
throw new Test262Error029'; +x
=
'U+2029'; if (x !== 'U+2029') { - $ERROR('#9: (x\\u2029=\\u2029true) === true'); + throw new Test262Error('#9: (x\\u2029=\\u2029true) === true'); } -x throw new Test262Error +x   

=   

'U+0009U+000BU+000CU+0020U+00A0U+000DU+2028U+2029'; if (x !== 'U+0009U+000BU+000CU+0020U+00A0U+000DU+2028U+2029') { - $ERROR('#10: (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000D\\u2028\\u2029=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000D\\u2028\\u2029true) === true'); + throw new Test262Error('#10: (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000D\\u2028\\u2029=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000D\\u2028\\u2029true) === true'); }