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