summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/length.js11
-rw-r--r--js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/name.js11
-rw-r--r--js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js2
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/length.js b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/length.js
index ec522ab2f5..70284e43e6 100644
--- a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/length.js
+++ b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/length.js
@@ -23,10 +23,11 @@ includes: [propertyHelper.js]
features: [Symbol.matchAll]
---*/
-assert.sameValue(RegExp.prototype[Symbol.matchAll].length, 1);
-
-verifyNotEnumerable(RegExp.prototype[Symbol.matchAll], 'length');
-verifyNotWritable(RegExp.prototype[Symbol.matchAll], 'length');
-verifyConfigurable(RegExp.prototype[Symbol.matchAll], 'length');
+verifyProperty(RegExp.prototype[Symbol.matchAll], "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/name.js b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/name.js
index f9a1e9bf87..4ce81b923f 100644
--- a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/name.js
+++ b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/name.js
@@ -21,10 +21,11 @@ includes: [propertyHelper.js]
features: [Symbol.matchAll]
---*/
-assert.sameValue(RegExp.prototype[Symbol.matchAll].name, '[Symbol.matchAll]');
-
-verifyNotEnumerable(RegExp.prototype[Symbol.matchAll], 'name');
-verifyNotWritable(RegExp.prototype[Symbol.matchAll], 'name');
-verifyConfigurable(RegExp.prototype[Symbol.matchAll], 'name');
+verifyProperty(RegExp.prototype[Symbol.matchAll], "name", {
+ value: "[Symbol.matchAll]",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js
index 03009bf3de..956881d1c6 100644
--- a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let re = new RegExp(''); new re[Symbol.matchAll]();
-}, '`let re = new RegExp(\'\'); new re[Symbol.matchAll]()` throws TypeError');
+});
reportCompare(0, 0);