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