summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/WeakSet/prototype/has
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/WeakSet/prototype/has')
-rw-r--r--js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js14
-rw-r--r--js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js14
-rw-r--r--js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js2
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js b/js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js
index 5e4176a5cc..cec3d5e3f0 100644
--- a/js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js
+++ b/js/src/tests/test262/built-ins/WeakSet/prototype/has/length.js
@@ -12,13 +12,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- WeakSet.prototype.has.length, 1,
- 'The value of WeakSet.prototype.has.length is 1'
-);
-
-verifyNotEnumerable(WeakSet.prototype.has, 'length');
-verifyNotWritable(WeakSet.prototype.has, 'length');
-verifyConfigurable(WeakSet.prototype.has, 'length');
+verifyProperty(WeakSet.prototype.has, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js b/js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js
index 6fca676585..11c364e160 100644
--- a/js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js
+++ b/js/src/tests/test262/built-ins/WeakSet/prototype/has/name.js
@@ -12,13 +12,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- WeakSet.prototype.has.name, 'has',
- 'The value of WeakSet.prototype.has.name is "has"'
-);
-
-verifyNotEnumerable(WeakSet.prototype.has, 'name');
-verifyNotWritable(WeakSet.prototype.has, 'name');
-verifyConfigurable(WeakSet.prototype.has, 'name');
+verifyProperty(WeakSet.prototype.has, "name", {
+ value: "has",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js b/js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js
index b21d7cb36f..caff7da47f 100644
--- a/js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/WeakSet/prototype/has/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let ws = new WeakSet(); new ws.has();
-}, '`let ws = new WeakSet(); new ws.has()` throws TypeError');
+});
reportCompare(0, 0);