summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Map/prototype/clear/length.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Map/prototype/clear/length.js')
-rw-r--r--js/src/tests/test262/built-ins/Map/prototype/clear/length.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/js/src/tests/test262/built-ins/Map/prototype/clear/length.js b/js/src/tests/test262/built-ins/Map/prototype/clear/length.js
index 7cc8f3126f..a6511ad387 100644
--- a/js/src/tests/test262/built-ins/Map/prototype/clear/length.js
+++ b/js/src/tests/test262/built-ins/Map/prototype/clear/length.js
@@ -12,13 +12,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- Map.prototype.clear.length, 0,
- 'The value of `Map.prototype.clear.length` is `0`'
-);
-
-verifyNotEnumerable(Map.prototype.clear, 'length');
-verifyNotWritable(Map.prototype.clear, 'length');
-verifyConfigurable(Map.prototype.clear, 'length');
+verifyProperty(Map.prototype.clear, "length", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);