// 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 in Unicode RegExps have some syntax errors and some
compatibility escape fallback behavior.
esid: prod-GroupSpecifier
features: [regexp-named-groups, regexp-lookbehind]
includes: [compareArray.js]
---*/
assert(/\k/.test("k"));
assert(/\k<4>/.test("k<4>"));
assert(/\k\a)/.test("a"));
assert(compareArray(["k"], "xxxkxxx".match(/\k/)));
assert(compareArray(["kxxx".match(/\k(?<=>)a/.test("ka"));
assert(/\k(?a"));
assert(/\k(x)/.test("kx"));