diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/prototype/toLocaleString')
-rw-r--r-- | js/src/tests/test262/built-ins/Object/prototype/toLocaleString/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Object/prototype/toLocaleString/not-a-constructor.js | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/js/src/tests/test262/built-ins/Object/prototype/toLocaleString/name.js b/js/src/tests/test262/built-ins/Object/prototype/toLocaleString/name.js index 5f258165ba..835f5a488b 100644 --- a/js/src/tests/test262/built-ins/Object/prototype/toLocaleString/name.js +++ b/js/src/tests/test262/built-ins/Object/prototype/toLocaleString/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Object.prototype.toLocaleString.name, "toLocaleString"); - -verifyNotEnumerable(Object.prototype.toLocaleString, "name"); -verifyNotWritable(Object.prototype.toLocaleString, "name"); -verifyConfigurable(Object.prototype.toLocaleString, "name"); +verifyProperty(Object.prototype.toLocaleString, "name", { + value: "toLocaleString", + writable: false, + enumerable: false, + configurable: true, +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Object/prototype/toLocaleString/not-a-constructor.js b/js/src/tests/test262/built-ins/Object/prototype/toLocaleString/not-a-constructor.js index 49fc0525db..ed9b6d87dc 100644 --- a/js/src/tests/test262/built-ins/Object/prototype/toLocaleString/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Object/prototype/toLocaleString/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.prototype.toLocaleString(''); -}, '`new Object.prototype.toLocaleString(\'\')` throws TypeError'); +}); reportCompare(0, 0); |