summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/WeakSet/length.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/WeakSet/length.js')
-rw-r--r--js/src/tests/test262/built-ins/WeakSet/length.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/js/src/tests/test262/built-ins/WeakSet/length.js b/js/src/tests/test262/built-ins/WeakSet/length.js
index a34c33236d..606922e0de 100644
--- a/js/src/tests/test262/built-ins/WeakSet/length.js
+++ b/js/src/tests/test262/built-ins/WeakSet/length.js
@@ -7,10 +7,11 @@ description: >
includes: [propertyHelper.js]
---*/
-assert.sameValue(WeakSet.length, 0, 'The value of `WeakSet.length` is `0`');
-
-verifyNotEnumerable(WeakSet, 'length');
-verifyNotWritable(WeakSet, 'length');
-verifyConfigurable(WeakSet, 'length');
+verifyProperty(WeakSet, "length", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);