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