dcbcb52c9c
Bug: v8:12297 Change-Id: Ifbf6ac61e6b61e419b361d1fc14009d6d745193c Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3231484 Reviewed-by: Milad Fa <mfarazma@redhat.com> Reviewed-by: Omer Katz <omerkatz@chromium.org> Reviewed-by: Mathias Bynens <mathias@chromium.org> Commit-Queue: Vasili Skurydzin <vasili.skurydzin@ibm.com> Cr-Commit-Position: refs/heads/main@{#77528}
12 lines
389 B
JavaScript
12 lines
389 B
JavaScript
// Copyright 2020 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.
|
|
//
|
|
// Flags: --allow-natives-syntax --stack-size=1200
|
|
|
|
const needle = Array(1802).join(" +") + Array(16884).join("A");
|
|
const string = "A";
|
|
|
|
assertEquals(string.search(needle), -1);
|
|
assertEquals(string.search(needle), -1);
|