2021-02-11 19:03:35 +01:00
|
|
|
// 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.
|
|
|
|
|
2021-03-12 08:24:20 +01:00
|
|
|
// Flags: --no-enable-experimental-regexp-engine
|
|
|
|
|
2021-02-24 14:47:06 +01:00
|
|
|
let badregexp = "(?:" + " ".repeat(32768*2)+ ")*";
|
|
|
|
reg = RegExp(badregexp);
|
|
|
|
assertThrows(() => reg.test(), SyntaxError);
|