// 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] 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(x)/.test("kx")); assert(/\k\1/.test("k\x01")); assert(/\1(b)\k/.test("bk"));