mirror of https://github.com/tc39/test262.git
21 lines
605 B
JavaScript
21 lines
605 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
description: Group reference must have corresponding group.
|
|
info: |
|
|
It is a Syntax Error if the enclosing Pattern does not contain a
|
|
GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue
|
|
equals the StringValue of the RegExpIdentifierName of this production's
|
|
GroupName.
|
|
esid: sec-patterns-static-semantics-early-errors
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
features: [regexp-named-groups]
|
|
---*/
|
|
|
|
$DONOTEVALUATE();
|
|
|
|
/(?<a>.)\k<b>/u;
|