From 0fce06560170111ec09b5931efc9844b53c8720b Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 21 Jul 2021 14:57:35 -0400 Subject: [PATCH] chore: migrate $ERROR -> throw new Test262Error in test/built-ins/JSON (#3087) --- test/built-ins/JSON/parse/S15.12.2_A1.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/built-ins/JSON/parse/S15.12.2_A1.js b/test/built-ins/JSON/parse/S15.12.2_A1.js index fc44724d60..8cb2a8e5f5 100644 --- a/test/built-ins/JSON/parse/S15.12.2_A1.js +++ b/test/built-ins/JSON/parse/S15.12.2_A1.js @@ -9,8 +9,8 @@ description: Tests that JSON.parse treats "__proto__" as a regular property name var x = JSON.parse('{"__proto__":[]}'); if (Object.getPrototypeOf(x) !== Object.prototype) { - $ERROR('#1: JSON.parse confused by "__proto__"'); + throw new Test262Error('#1: JSON.parse confused by "__proto__"'); } if (!Array.isArray(x.__proto__)) { - $ERROR('#2: JSON.parse did not set "__proto__" as a regular property'); + throw new Test262Error('#2: JSON.parse did not set "__proto__" as a regular property'); }