From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- js/src/tests/test262/built-ins/Set/Symbol.species/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/name.js | 11 ++++++----- .../Set/prototype/Symbol.iterator/not-a-constructor.js | 2 +- js/src/tests/test262/built-ins/Set/prototype/add/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/prototype/add/name.js | 11 ++++++----- .../test262/built-ins/Set/prototype/add/not-a-constructor.js | 2 +- js/src/tests/test262/built-ins/Set/prototype/clear/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/prototype/clear/name.js | 11 ++++++----- .../built-ins/Set/prototype/clear/not-a-constructor.js | 2 +- js/src/tests/test262/built-ins/Set/prototype/delete/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/prototype/delete/name.js | 11 ++++++----- .../built-ins/Set/prototype/delete/not-a-constructor.js | 2 +- .../built-ins/Set/prototype/difference/not-a-constructor.js | 4 +--- .../tests/test262/built-ins/Set/prototype/entries/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/prototype/entries/name.js | 11 ++++++----- .../built-ins/Set/prototype/entries/not-a-constructor.js | 2 +- .../tests/test262/built-ins/Set/prototype/forEach/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/prototype/forEach/name.js | 11 ++++++----- .../built-ins/Set/prototype/forEach/not-a-constructor.js | 2 +- js/src/tests/test262/built-ins/Set/prototype/has/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/prototype/has/name.js | 11 ++++++----- .../test262/built-ins/Set/prototype/has/not-a-constructor.js | 2 +- .../built-ins/Set/prototype/intersection/not-a-constructor.js | 4 +--- .../Set/prototype/isDisjointFrom/not-a-constructor.js | 4 +--- .../built-ins/Set/prototype/isSubsetOf/not-a-constructor.js | 4 +--- .../built-ins/Set/prototype/isSupersetOf/not-a-constructor.js | 4 +--- js/src/tests/test262/built-ins/Set/prototype/size/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/prototype/size/name.js | 11 ++++++----- .../Set/prototype/symmetricDifference/not-a-constructor.js | 4 +--- .../built-ins/Set/prototype/union/not-a-constructor.js | 4 +--- js/src/tests/test262/built-ins/Set/prototype/values/length.js | 11 ++++++----- js/src/tests/test262/built-ins/Set/prototype/values/name.js | 11 ++++++----- .../built-ins/Set/prototype/values/not-a-constructor.js | 2 +- 34 files changed, 129 insertions(+), 124 deletions(-) (limited to 'js/src/tests/test262/built-ins/Set') diff --git a/js/src/tests/test262/built-ins/Set/Symbol.species/length.js b/js/src/tests/test262/built-ins/Set/Symbol.species/length.js index a4fc6ac666..1620be6bb3 100644 --- a/js/src/tests/test262/built-ins/Set/Symbol.species/length.js +++ b/js/src/tests/test262/built-ins/Set/Symbol.species/length.js @@ -25,10 +25,11 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(Set, Symbol.species); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/length.js b/js/src/tests/test262/built-ins/Set/length.js index 7e42877423..6b1f4090c1 100644 --- a/js/src/tests/test262/built-ins/Set/length.js +++ b/js/src/tests/test262/built-ins/Set/length.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.length, 0, "The value of `Set.length` is `0`"); - -verifyNotEnumerable(Set, "length"); -verifyNotWritable(Set, "length"); -verifyConfigurable(Set, "length"); +verifyProperty(Set, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/name.js b/js/src/tests/test262/built-ins/Set/name.js index c4f6ac72ef..aefb516ac5 100644 --- a/js/src/tests/test262/built-ins/Set/name.js +++ b/js/src/tests/test262/built-ins/Set/name.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.name, "Set", "The value of `Set.name` is `'Set'`"); - -verifyNotEnumerable(Set, "name"); -verifyNotWritable(Set, "name"); -verifyConfigurable(Set, "name"); +verifyProperty(Set, "name", { + value: "Set", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/Symbol.iterator/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/Symbol.iterator/not-a-constructor.js index 8db788f9c0..62db65ee42 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/Symbol.iterator/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/Symbol.iterator/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let s = new Set([]); new s[Symbol.iterator](); -}, '`let s = new Set([]); new s[Symbol.iterator]()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/add/length.js b/js/src/tests/test262/built-ins/Set/prototype/add/length.js index 88b79c7dae..8b3ccae745 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/add/length.js +++ b/js/src/tests/test262/built-ins/Set/prototype/add/length.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.add.length, 1, "The value of `Set.prototype.add.length` is `1`"); - -verifyNotEnumerable(Set.prototype.add, "length"); -verifyNotWritable(Set.prototype.add, "length"); -verifyConfigurable(Set.prototype.add, "length"); +verifyProperty(Set.prototype.add, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/add/name.js b/js/src/tests/test262/built-ins/Set/prototype/add/name.js index f8f5441845..ae4e54bbe1 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/add/name.js +++ b/js/src/tests/test262/built-ins/Set/prototype/add/name.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.add.name, "add", "The value of `Set.prototype.add.name` is `'add'`"); - -verifyNotEnumerable(Set.prototype.add, "name"); -verifyNotWritable(Set.prototype.add, "name"); -verifyConfigurable(Set.prototype.add, "name"); +verifyProperty(Set.prototype.add, "name", { + value: "add", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/add/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/add/not-a-constructor.js index c1ba69377d..1b8d1af562 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/add/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/add/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Set.prototype.add), false, 'isConstructor(Set.pro assert.throws(TypeError, () => { let s = new Set([]); new s.add(); -}, '`let s = new Set([]); new s.add()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/clear/length.js b/js/src/tests/test262/built-ins/Set/prototype/clear/length.js index 84e1dd1146..b275b85aa1 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/clear/length.js +++ b/js/src/tests/test262/built-ins/Set/prototype/clear/length.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.clear.length, 0, "The value of `Set.prototype.clear.length` is `0`"); - -verifyNotEnumerable(Set.prototype.clear, "length"); -verifyNotWritable(Set.prototype.clear, "length"); -verifyConfigurable(Set.prototype.clear, "length"); +verifyProperty(Set.prototype.clear, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/clear/name.js b/js/src/tests/test262/built-ins/Set/prototype/clear/name.js index 722a8af8f1..f6c25d3f21 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/clear/name.js +++ b/js/src/tests/test262/built-ins/Set/prototype/clear/name.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.clear.name, "clear", "The value of `Set.prototype.clear.name` is `'clear'`"); - -verifyNotEnumerable(Set.prototype.clear, "name"); -verifyNotWritable(Set.prototype.clear, "name"); -verifyConfigurable(Set.prototype.clear, "name"); +verifyProperty(Set.prototype.clear, "name", { + value: "clear", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/clear/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/clear/not-a-constructor.js index 16f0ebd97c..26e25a8d0f 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/clear/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/clear/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Set.prototype.clear), false, 'isConstructor(Set.p assert.throws(TypeError, () => { let s = new Set([]); new s.clear(); -}, '`let s = new Set([]); new s.clear()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/delete/length.js b/js/src/tests/test262/built-ins/Set/prototype/delete/length.js index 5d28a0ad40..491a0a7706 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/delete/length.js +++ b/js/src/tests/test262/built-ins/Set/prototype/delete/length.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.delete.length, 1, "The value of `Set.prototype.delete.length` is `1`"); - -verifyNotEnumerable(Set.prototype.delete, "length"); -verifyNotWritable(Set.prototype.delete, "length"); -verifyConfigurable(Set.prototype.delete, "length"); +verifyProperty(Set.prototype.delete, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/delete/name.js b/js/src/tests/test262/built-ins/Set/prototype/delete/name.js index 538d7b4370..e54dd71baf 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/delete/name.js +++ b/js/src/tests/test262/built-ins/Set/prototype/delete/name.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.delete.name, "delete", "The value of `Set.prototype.delete.name` is `'delete'`"); - -verifyNotEnumerable(Set.prototype.delete, "name"); -verifyNotWritable(Set.prototype.delete, "name"); -verifyConfigurable(Set.prototype.delete, "name"); +verifyProperty(Set.prototype.delete, "name", { + value: "delete", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/delete/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/delete/not-a-constructor.js index 3c978d44f0..401cff6bf7 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/delete/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/delete/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Set.prototype.delete), false, 'isConstructor(Set. assert.throws(TypeError, () => { let s = new Set([]); new s.delete(); -}, '`let s = new Set([]); new s.delete()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/difference/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/difference/not-a-constructor.js index eb8765cfb2..cd57acf6ab 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/difference/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/difference/not-a-constructor.js @@ -18,8 +18,6 @@ assert.throws( TypeError, () => { new Set.prototype.difference(); - }, - "`new Set.prototype.difference()` throws TypeError" -); + }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/entries/length.js b/js/src/tests/test262/built-ins/Set/prototype/entries/length.js index 5f7ab9dd4c..9f3c5a39c5 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/entries/length.js +++ b/js/src/tests/test262/built-ins/Set/prototype/entries/length.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.entries.length, 0, "The value of `Set.prototype.entries.length` is `0`"); - -verifyNotEnumerable(Set.prototype.entries, "length"); -verifyNotWritable(Set.prototype.entries, "length"); -verifyConfigurable(Set.prototype.entries, "length"); +verifyProperty(Set.prototype.entries, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/entries/name.js b/js/src/tests/test262/built-ins/Set/prototype/entries/name.js index ffcfec6df1..e29b78e96f 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/entries/name.js +++ b/js/src/tests/test262/built-ins/Set/prototype/entries/name.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.entries.name, "entries", "The value of `Set.prototype.entries.name` is `'entries'`"); - -verifyNotEnumerable(Set.prototype.entries, "name"); -verifyNotWritable(Set.prototype.entries, "name"); -verifyConfigurable(Set.prototype.entries, "name"); +verifyProperty(Set.prototype.entries, "name", { + value: "entries", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/entries/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/entries/not-a-constructor.js index cd385a7077..d2ac4f4845 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/entries/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/entries/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let s = new Set([]); new s.entries(); -}, '`let s = new Set([]); new s.entries()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/forEach/length.js b/js/src/tests/test262/built-ins/Set/prototype/forEach/length.js index 8304c78447..b831b6c0ee 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/forEach/length.js +++ b/js/src/tests/test262/built-ins/Set/prototype/forEach/length.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.forEach.length, 1, "The value of `Set.prototype.forEach.length` is `1`"); - -verifyNotEnumerable(Set.prototype.forEach, "length"); -verifyNotWritable(Set.prototype.forEach, "length"); -verifyConfigurable(Set.prototype.forEach, "length"); +verifyProperty(Set.prototype.forEach, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/forEach/name.js b/js/src/tests/test262/built-ins/Set/prototype/forEach/name.js index 390b016c64..176ef0d84b 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/forEach/name.js +++ b/js/src/tests/test262/built-ins/Set/prototype/forEach/name.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.forEach.name, "forEach", "The value of `Set.prototype.forEach.name` is `'forEach'`"); - -verifyNotEnumerable(Set.prototype.forEach, "name"); -verifyNotWritable(Set.prototype.forEach, "name"); -verifyConfigurable(Set.prototype.forEach, "name"); +verifyProperty(Set.prototype.forEach, "name", { + value: "forEach", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/forEach/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/forEach/not-a-constructor.js index 96509bf80a..fd62129107 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/forEach/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/forEach/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { let s = new Set([]); new s.forEach(() => {}); -}, '`let s = new Set([]); new s.forEach(() => {})` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/has/length.js b/js/src/tests/test262/built-ins/Set/prototype/has/length.js index 93326a3565..e12231b9d4 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/has/length.js +++ b/js/src/tests/test262/built-ins/Set/prototype/has/length.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.has.length, 1, "The value of `Set.prototype.has.length` is `1`"); - -verifyNotEnumerable(Set.prototype.has, "length"); -verifyNotWritable(Set.prototype.has, "length"); -verifyConfigurable(Set.prototype.has, "length"); +verifyProperty(Set.prototype.has, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/has/name.js b/js/src/tests/test262/built-ins/Set/prototype/has/name.js index c95b4ff0b5..72f4ee68b2 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/has/name.js +++ b/js/src/tests/test262/built-ins/Set/prototype/has/name.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.has.name, "has", "The value of `Set.prototype.has.name` is `'has'`"); - -verifyNotEnumerable(Set.prototype.has, "name"); -verifyNotWritable(Set.prototype.has, "name"); -verifyConfigurable(Set.prototype.has, "name"); +verifyProperty(Set.prototype.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/has/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/has/not-a-constructor.js index 8f41ff0c1f..d1e82f6939 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/has/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/has/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Set.prototype.has), false, 'isConstructor(Set.pro assert.throws(TypeError, () => { let s = new Set([]); new s.has(); -}, '`let s = new Set([]); new s.has()` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/intersection/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/intersection/not-a-constructor.js index 0a8b82b058..3b759e2cea 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/intersection/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/intersection/not-a-constructor.js @@ -18,8 +18,6 @@ assert.throws( TypeError, () => { new Set.prototype.intersection(); - }, - "`new Set.prototype.intersection()` throws TypeError" -); + }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/isDisjointFrom/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/isDisjointFrom/not-a-constructor.js index bcb7d8f159..c5bf872a96 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/isDisjointFrom/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/isDisjointFrom/not-a-constructor.js @@ -18,8 +18,6 @@ assert.throws( TypeError, () => { new Set.prototype.isDisjointFrom(); - }, - "`new Set.prototype.isDisjointFrom()` throws TypeError" -); + }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/isSubsetOf/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/isSubsetOf/not-a-constructor.js index 9bb00a7a45..6b81688532 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/isSubsetOf/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/isSubsetOf/not-a-constructor.js @@ -18,8 +18,6 @@ assert.throws( TypeError, () => { new Set.prototype.isSubsetOf(); - }, - "`new Set.prototype.isSubsetOf()` throws TypeError" -); + }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/isSupersetOf/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/isSupersetOf/not-a-constructor.js index 9ce1d37913..00860eb9ab 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/isSupersetOf/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/isSupersetOf/not-a-constructor.js @@ -18,8 +18,6 @@ assert.throws( TypeError, () => { new Set.prototype.isSupersetOf(); - }, - "`new Set.prototype.isSupersetOf()` throws TypeError" -); + }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/size/length.js b/js/src/tests/test262/built-ins/Set/prototype/size/length.js index 4b0b0675dd..288787106e 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/size/length.js +++ b/js/src/tests/test262/built-ins/Set/prototype/size/length.js @@ -13,10 +13,11 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(Set.prototype, "size"); -assert.sameValue(descriptor.get.length, 0, "The value of `Set.prototype.size.length` is `0`"); - -verifyNotEnumerable(descriptor.get, "length"); -verifyNotWritable(descriptor.get, "length"); -verifyConfigurable(descriptor.get, "length"); +verifyProperty(descriptor.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/size/name.js b/js/src/tests/test262/built-ins/Set/prototype/size/name.js index 79723d8f0e..baf6fa968a 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/size/name.js +++ b/js/src/tests/test262/built-ins/Set/prototype/size/name.js @@ -16,10 +16,11 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(Set.prototype, "size"); -assert.sameValue(descriptor.get.name, "get size", "The value of `descriptor.get.name` is `'get size'`"); - -verifyNotEnumerable(descriptor.get, "name"); -verifyNotWritable(descriptor.get, "name"); -verifyConfigurable(descriptor.get, "name"); +verifyProperty(descriptor.get, "name", { + value: "get size", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/symmetricDifference/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/symmetricDifference/not-a-constructor.js index 495beeac4b..7b3234c5a9 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/symmetricDifference/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/symmetricDifference/not-a-constructor.js @@ -18,8 +18,6 @@ assert.throws( TypeError, () => { new Set.prototype.symmetricDifference(); - }, - "`new Set.prototype.symmetricDifference()` throws TypeError" -); + }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/union/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/union/not-a-constructor.js index 9c4f4d7baf..f57bcb02f8 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/union/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/union/not-a-constructor.js @@ -18,8 +18,6 @@ assert.throws( TypeError, () => { new Set.prototype.union(); - }, - "`new Set.prototype.union()` throws TypeError" -); + }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/values/length.js b/js/src/tests/test262/built-ins/Set/prototype/values/length.js index 8e49d1bc51..e65ada6a4c 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/values/length.js +++ b/js/src/tests/test262/built-ins/Set/prototype/values/length.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.values.length, 0, "The value of `Set.prototype.values.length` is `0`"); - -verifyNotEnumerable(Set.prototype.values, "length"); -verifyNotWritable(Set.prototype.values, "length"); -verifyConfigurable(Set.prototype.values, "length"); +verifyProperty(Set.prototype.values, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/values/name.js b/js/src/tests/test262/built-ins/Set/prototype/values/name.js index a2458e9505..0f55f2ea0d 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/values/name.js +++ b/js/src/tests/test262/built-ins/Set/prototype/values/name.js @@ -10,10 +10,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.values.name, "values", "The value of `Set.prototype.values.name` is `'values'`"); - -verifyNotEnumerable(Set.prototype.values, "name"); -verifyNotWritable(Set.prototype.values, "name"); -verifyConfigurable(Set.prototype.values, "name"); +verifyProperty(Set.prototype.values, "name", { + value: "values", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Set/prototype/values/not-a-constructor.js b/js/src/tests/test262/built-ins/Set/prototype/values/not-a-constructor.js index f21399ca9f..10d52e40de 100644 --- a/js/src/tests/test262/built-ins/Set/prototype/values/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Set/prototype/values/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Set.prototype.values), false, 'isConstructor(Set. assert.throws(TypeError, () => { let s = new Set([]); new s.values(); -}, '`let s = new Set([]); new s.values()` throws TypeError'); +}); reportCompare(0, 0); -- cgit v1.2.3