chore: migrate $ERROR -> throw new Test262Error in src/*

This commit is contained in:
rwaldron 2021-07-22 10:56:15 -04:00
parent f37edcb486
commit 4bdba71130
6 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ template: default
let x, setValue; let x, setValue;
x = { x = {
get y() { get y() {
$ERROR('The property should not be accessed.'); throw new Test262Error('The property should not be accessed.');
}, },
set y(val) { set y(val) {
setValue = val; setValue = val;

View File

@ -13,7 +13,7 @@ es6id: 12.14.5.3
let setValue; let setValue;
let x = { let x = {
get y() { get y() {
$ERROR('The property should not be accessed.'); throw new Test262Error('The property should not be accessed.');
}, },
set y(val) { set y(val) {
setValue = val; setValue = val;

View File

@ -13,7 +13,7 @@ es6id: 12.14.5.4
let setValue; let setValue;
let x = { let x = {
get y() { get y() {
$ERROR('The property should not be accessed.'); throw new Test262Error('The property should not be accessed.');
}, },
set y(val) { set y(val) {
setValue = val; setValue = val;

View File

@ -13,7 +13,7 @@ es6id: 12.14.5.3
var x, setValue; var x, setValue;
x = { x = {
get y() { get y() {
$ERROR('The property should not be accessed.'); throw new Test262Error('The property should not be accessed.');
}, },
set y(val) { set y(val) {
setValue = val; setValue = val;

View File

@ -13,7 +13,7 @@ es6id: 12.14.5.3
var setValue; var setValue;
var x = { var x = {
get y() { get y() {
$ERROR('The property should not be accessed.'); throw new Test262Error('The property should not be accessed.');
}, },
set y(val) { set y(val) {
setValue = val; setValue = val;

View File

@ -13,7 +13,7 @@ es6id: 12.14.5.4
var setValue; var setValue;
var x = { var x = {
get y() { get y() {
$ERROR('The property should not be accessed.'); throw new Test262Error('The property should not be accessed.');
}, },
set y(val) { set y(val) {
setValue = val; setValue = val;