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