summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/length.js11
-rw-r--r--js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/name.js11
-rw-r--r--js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js2
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/length.js b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/length.js
index ea84d3ce40..b8c3c34a02 100644
--- a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/length.js
+++ b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/length.js
@@ -19,10 +19,11 @@ includes: [propertyHelper.js]
features: [Symbol.match]
---*/
-assert.sameValue(RegExp.prototype[Symbol.match].length, 1);
-
-verifyNotEnumerable(RegExp.prototype[Symbol.match], 'length');
-verifyNotWritable(RegExp.prototype[Symbol.match], 'length');
-verifyConfigurable(RegExp.prototype[Symbol.match], 'length');
+verifyProperty(RegExp.prototype[Symbol.match], "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/name.js b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/name.js
index 2c676dba2f..a0629a0c73 100644
--- a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/name.js
+++ b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/name.js
@@ -17,10 +17,11 @@ includes: [propertyHelper.js]
features: [Symbol.match]
---*/
-assert.sameValue(RegExp.prototype[Symbol.match].name, '[Symbol.match]');
-
-verifyNotEnumerable(RegExp.prototype[Symbol.match], 'name');
-verifyNotWritable(RegExp.prototype[Symbol.match], 'name');
-verifyConfigurable(RegExp.prototype[Symbol.match], 'name');
+verifyProperty(RegExp.prototype[Symbol.match], "name", {
+ value: "[Symbol.match]",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js
index f56be3391f..727add9892 100644
--- a/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let re = new RegExp(''); new re[Symbol.match]();
-}, '`let re = new RegExp(\'\'); new re[Symbol.match]()` throws TypeError');
+});
reportCompare(0, 0);