Files
Kmake/deps/v8/test/mjsunit/regress/regress-394874187.js

15 lines
408 B
JavaScript
Raw Normal View History

2026-05-26 23:36:42 -07:00
// Copyright 2025 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.
{
let r = /\u{10000}/ugd;
r.lastIndex = 1;
assertArrayEquals([[0, 2]], r.exec("\u{10000}_\u{10000}").indices);
}
{
let r = /[\u{10000}]/ugd;
r.lastIndex = 1;
assertArrayEquals([[0, 2]], r.exec("\u{10000}_\u{10000}").indices);
}