v8/test/mjsunit/regress-crbug-1374042.js
pthier 058cb75b05 [regexp] Indicate no more work to be done after an error
After an error is encounterd during RegExp parsing, indicate that there
is no more work to do.

Bug: chromium:1374042
Change-Id: Ib547a06de855028e862933897930d8ba78f8f320
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3950294
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Auto-Submit: Patrick Thier <pthier@chromium.org>
Reviewed-by: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83673}
2022-10-13 09:39:58 +00:00

13 lines
249 B
JavaScript

// Copyright 2022 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.
function foo() {
try {
foo();
} catch(e) {
/\0/.test();
}
}
foo();