test262/test/language/literals/regexp/named-groups/forward-reference.js

11 lines
288 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: Named groups can be forward references.
esid: sec-atomescape
features: [regexp-named-groups]
---*/
assert(/\k<a>(?<a>x)/.test("x"));