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