diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Error/prototype')
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Error/prototype/toString/length.js b/js/src/tests/test262/built-ins/Error/prototype/toString/length.js index 0f6d033b73..faad9af1be 100644 --- a/js/src/tests/test262/built-ins/Error/prototype/toString/length.js +++ b/js/src/tests/test262/built-ins/Error/prototype/toString/length.js @@ -22,10 +22,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Error.prototype.toString.length, 0); - -verifyNotEnumerable(Error.prototype.toString, "length"); -verifyNotWritable(Error.prototype.toString, "length"); -verifyConfigurable(Error.prototype.toString, "length"); +verifyProperty(Error.prototype.toString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Error/prototype/toString/name.js b/js/src/tests/test262/built-ins/Error/prototype/toString/name.js index 8896e27dcf..23bdcd8c84 100644 --- a/js/src/tests/test262/built-ins/Error/prototype/toString/name.js +++ b/js/src/tests/test262/built-ins/Error/prototype/toString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Error.prototype.toString.name, "toString"); - -verifyNotEnumerable(Error.prototype.toString, "name"); -verifyNotWritable(Error.prototype.toString, "name"); -verifyConfigurable(Error.prototype.toString, "name"); +verifyProperty(Error.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Error/prototype/toString/not-a-constructor.js b/js/src/tests/test262/built-ins/Error/prototype/toString/not-a-constructor.js index 884c05e62e..c4eb05f6c7 100644 --- a/js/src/tests/test262/built-ins/Error/prototype/toString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Error/prototype/toString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { new Error.prototype.toString(); -}, '`new Error.prototype.toString()` throws TypeError'); +}); reportCompare(0, 0); |