summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/named-groups/groups-object.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/RegExp/named-groups/groups-object.js')
-rw-r--r--test/built-ins/RegExp/named-groups/groups-object.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/built-ins/RegExp/named-groups/groups-object.js b/test/built-ins/RegExp/named-groups/groups-object.js
index 32a85bf75..8b3f7da38 100644
--- a/test/built-ins/RegExp/named-groups/groups-object.js
+++ b/test/built-ins/RegExp/named-groups/groups-object.js
@@ -18,7 +18,9 @@ info: |
// `groups` is created with Define, not Set.
let counter = 0;
Object.defineProperty(Array.prototype, "groups", {
- set() { counter++; }
+ set() {
+ counter++;
+ }
});
let match = /(?<x>.)/.exec("a");
@@ -34,6 +36,8 @@ verifyProperty(match, "groups", {
// The `__proto__` property on the groups object is not special,
// and does not affect the [[Prototype]] of the resulting groups object.
-let {groups} = /(?<__proto__>.)/.exec("a");
+let {
+ groups
+} = /(?<__proto__>.)/.exec("a");
assert.sameValue("a", groups.__proto__);
assert.sameValue(null, Object.getPrototypeOf(groups));