summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Set/prototype/has
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Set/prototype/has')
-rw-r--r--js/src/tests/test262/built-ins/Set/prototype/has/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Set/prototype/has/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Set/prototype/has/not-a-constructor.js2
3 files changed, 13 insertions, 11 deletions
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);