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