mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 19:44:16 +00:00

PR-URL: https://github.com/nodejs/node/pull/41610 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
13 lines
567 B
JavaScript
13 lines
567 B
JavaScript
// Copyright 2021 the V8 project authors. All rights reserved.
|
||
// Use of this source code is governed by a BSD-style license that can be
|
||
// found in the LICENSE file.
|
||
|
||
const s = "x";
|
||
|
||
assertEquals(/(?<\ud835\udc9c>.)/.exec(s).groups["\u{1d49c}"], s);
|
||
assertEquals(/(?<\ud835\udc9c>.)/u.exec(s).groups["\u{1d49c}"], s);
|
||
assertEquals(/(?<\u{1d49c}>.)/.exec(s).groups["\u{1d49c}"], s);
|
||
assertEquals(/(?<\u{1d49c}>.)/u.exec(s).groups["\u{1d49c}"], s);
|
||
assertEquals(/(?<𝒜>.)/.exec(s).groups["\u{1d49c}"], s);
|
||
assertEquals(/(?<𝒜>.)/u.exec(s).groups["\u{1d49c}"], s);
|