summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Map/prototype/set
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Map/prototype/set')
-rw-r--r--js/src/tests/test262/built-ins/Map/prototype/set/length.js14
-rw-r--r--js/src/tests/test262/built-ins/Map/prototype/set/name.js14
-rw-r--r--js/src/tests/test262/built-ins/Map/prototype/set/not-a-constructor.js2
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Map/prototype/set/length.js b/js/src/tests/test262/built-ins/Map/prototype/set/length.js
index 939b633c34..5039937eda 100644
--- a/js/src/tests/test262/built-ins/Map/prototype/set/length.js
+++ b/js/src/tests/test262/built-ins/Map/prototype/set/length.js
@@ -12,13 +12,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- Map.prototype.set.length, 2,
- 'The value of `Map.prototype.set.length` is `2`'
-);
-
-verifyNotEnumerable(Map.prototype.set, 'length');
-verifyNotWritable(Map.prototype.set, 'length');
-verifyConfigurable(Map.prototype.set, 'length');
+verifyProperty(Map.prototype.set, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Map/prototype/set/name.js b/js/src/tests/test262/built-ins/Map/prototype/set/name.js
index 7c0b83f696..d326a6a3da 100644
--- a/js/src/tests/test262/built-ins/Map/prototype/set/name.js
+++ b/js/src/tests/test262/built-ins/Map/prototype/set/name.js
@@ -12,13 +12,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(
- Map.prototype.set.name, 'set',
- 'The value of `Map.prototype.set.name` is `"set"`'
-);
-
-verifyNotEnumerable(Map.prototype.set, 'name');
-verifyNotWritable(Map.prototype.set, 'name');
-verifyConfigurable(Map.prototype.set, 'name');
+verifyProperty(Map.prototype.set, "name", {
+ value: "set",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Map/prototype/set/not-a-constructor.js b/js/src/tests/test262/built-ins/Map/prototype/set/not-a-constructor.js
index 2880254c25..0b5dbb5e42 100644
--- a/js/src/tests/test262/built-ins/Map/prototype/set/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Map/prototype/set/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Map.prototype.set), false, 'isConstructor(Map.pro
assert.throws(TypeError, () => {
let m = new Map(); new m.set();
-}, '`let m = new Map(); new m.set()` throws TypeError');
+});
reportCompare(0, 0);