diff --git a/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.js b/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.js index e4ad929dce..cc43f0df1e 100644 --- a/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.js +++ b/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.js @@ -2,10 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: GroupSpecifiers must be unique. +description: GroupSpecifiers within one alternative must be unique. info: | - It is a Syntax Error if Pattern contains multiple GroupSpecifiers - whose enclosed RegExpIdentifierNames have the same StringValue. + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. esid: sec-patterns-static-semantics-early-errors negative: phase: parse diff --git a/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.js b/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.js index edcd5e06ad..21bf468cc7 100644 --- a/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.js +++ b/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.js @@ -2,10 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: GroupSpecifiers must be unique. +description: GroupSpecifiers within one alternative must be unique. info: | - It is a Syntax Error if Pattern contains multiple GroupSpecifiers - whose enclosed RegExpIdentifierNames have the same StringValue. + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. esid: sec-patterns-static-semantics-early-errors negative: phase: parse diff --git a/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.js b/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.js index 44564d3837..41ff9f414a 100644 --- a/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.js +++ b/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.js @@ -2,10 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: GroupSpecifiers must be unique. +description: GroupSpecifiers within one alternative must be unique. info: | - It is a Syntax Error if Pattern contains multiple GroupSpecifiers - whose enclosed RegExpIdentifierNames have the same StringValue. + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. esid: sec-patterns-static-semantics-early-errors negative: phase: parse diff --git a/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.js b/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.js index e9a7ecbb18..7fbd5e134e 100644 --- a/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.js +++ b/test/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.js @@ -2,10 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -description: GroupSpecifiers must be unique. +description: GroupSpecifiers within one alternative must be unique. info: | - It is a Syntax Error if Pattern contains multiple GroupSpecifiers - whose enclosed RegExpIdentifierNames have the same StringValue. + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. esid: sec-patterns-static-semantics-early-errors negative: phase: parse