diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/prototype/toString')
-rw-r--r-- | js/src/tests/test262/built-ins/Object/prototype/toString/not-a-constructor.js | 2 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Object/prototype/toString/prop-desc.js | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/js/src/tests/test262/built-ins/Object/prototype/toString/not-a-constructor.js b/js/src/tests/test262/built-ins/Object/prototype/toString/not-a-constructor.js index 54f974d24f..ca2f1b3d64 100644 --- a/js/src/tests/test262/built-ins/Object/prototype/toString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Object/prototype/toString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.prototype.toString(); -}, '`new Object.prototype.toString()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Object/prototype/toString/prop-desc.js b/js/src/tests/test262/built-ins/Object/prototype/toString/prop-desc.js index 7d3ac0d66b..6ce7d132aa 100644 --- a/js/src/tests/test262/built-ins/Object/prototype/toString/prop-desc.js +++ b/js/src/tests/test262/built-ins/Object/prototype/toString/prop-desc.js @@ -16,8 +16,10 @@ info: | includes: [propertyHelper.js] ---*/ -verifyWritable(Object.prototype, "toString"); -verifyNotEnumerable(Object.prototype, "toString"); -verifyConfigurable(Object.prototype, "toString"); +verifyProperty(Object.prototype, "toString", { + writable: true, + enumerable: false, + configurable: true, +}); reportCompare(0, 0); |