diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/matchAll')
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/matchAll/length.js b/js/src/tests/test262/built-ins/String/prototype/matchAll/length.js index 49fc24912e..40121111fb 100644 --- a/js/src/tests/test262/built-ins/String/prototype/matchAll/length.js +++ b/js/src/tests/test262/built-ins/String/prototype/matchAll/length.js @@ -23,10 +23,11 @@ includes: [propertyHelper.js] features: [String.prototype.matchAll] ---*/ -assert.sameValue(String.prototype.matchAll.length, 1); - -verifyNotEnumerable(String.prototype.matchAll, 'length'); -verifyNotWritable(String.prototype.matchAll, 'length'); -verifyConfigurable(String.prototype.matchAll, 'length'); +verifyProperty(String.prototype.matchAll, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/String/prototype/matchAll/name.js b/js/src/tests/test262/built-ins/String/prototype/matchAll/name.js index efab01207f..8044946076 100644 --- a/js/src/tests/test262/built-ins/String/prototype/matchAll/name.js +++ b/js/src/tests/test262/built-ins/String/prototype/matchAll/name.js @@ -21,10 +21,11 @@ includes: [propertyHelper.js] features: [String.prototype.matchAll] ---*/ -assert.sameValue(String.prototype.matchAll.name, 'matchAll'); - -verifyNotEnumerable(String.prototype.matchAll, 'name'); -verifyNotWritable(String.prototype.matchAll, 'name'); -verifyConfigurable(String.prototype.matchAll, 'name'); +verifyProperty(String.prototype.matchAll, "name", { + value: "matchAll", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/String/prototype/matchAll/not-a-constructor.js b/js/src/tests/test262/built-ins/String/prototype/matchAll/not-a-constructor.js index e4a6ba973c..a895cd6797 100644 --- a/js/src/tests/test262/built-ins/String/prototype/matchAll/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/String/prototype/matchAll/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.matchAll(); -}, '`new String.prototype.matchAll()` throws TypeError'); +}); reportCompare(0, 0); |