diff options
Diffstat (limited to 'test/built-ins/RegExp/named-groups/unicode-references.js')
-rw-r--r-- | test/built-ins/RegExp/named-groups/unicode-references.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/built-ins/RegExp/named-groups/unicode-references.js b/test/built-ins/RegExp/named-groups/unicode-references.js index 9f8df10f5..1f95a2f40 100644 --- a/test/built-ins/RegExp/named-groups/unicode-references.js +++ b/test/built-ins/RegExp/named-groups/unicode-references.js @@ -33,10 +33,7 @@ assert.sameValue("b", "bab".match(/(?<a>\k<a>\w)../u).groups.a); assert(compareArray(["bab", "b"], "bab".match(/\k<a>(?<a>b)\w\k<a>/u))); assert.sameValue("b", "bab".match(/\k<a>(?<a>b)\w\k<a>/u).groups.a); assert(compareArray(["bab", "b", "a"], "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u))); -let { - a, - b -} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u).groups; +let {a, b} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u).groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); |