From 805e081783f43e4857839167837e1bd8e5551c46 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 21 Jul 2021 16:36:32 -0400 Subject: [PATCH] chore: migrate $ERROR -> throw new Test262Error in test/intl402 (#3094) --- .../local-tests/test/intl402/DateTimeFormat/12.1.1_1.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/implementation-contributed/v8/test262/local-tests/test/intl402/DateTimeFormat/12.1.1_1.js b/implementation-contributed/v8/test262/local-tests/test/intl402/DateTimeFormat/12.1.1_1.js index 9cabc6e50b..64845e74a9 100644 --- a/implementation-contributed/v8/test262/local-tests/test/intl402/DateTimeFormat/12.1.1_1.js +++ b/implementation-contributed/v8/test262/local-tests/test/intl402/DateTimeFormat/12.1.1_1.js @@ -15,11 +15,11 @@ testWithIntlConstructors(function (Constructor) { obj = new Constructor(); newObj = Intl.DateTimeFormat.call(obj); if (obj !== newObj) { - $ERROR("Should have modified existing object."); + throw new Test262Error("Should have modified existing object."); } var key = Object.getOwnPropertySymbols(newObj)[0]; if (!(newObj[key] instanceof Intl.DateTimeFormat)) { - $ERROR("Should have installed a DateTimeFormat instance."); + throw new Test262Error("Should have installed a DateTimeFormat instance."); } return true; } @@ -28,7 +28,7 @@ testWithIntlConstructors(function (Constructor) { obj = new Constructor(); newObj = Intl.DateTimeFormat.call(obj); if (obj === newObj) { - $ERROR("DateTimeFormat object created with \"new\" was not ignored as this-value."); + throw new Test262Error("DateTimeFormat object created with \"new\" was not ignored as this-value."); } return true;