| Index: test/fuzzer/regexp.cc
|
| diff --git a/test/fuzzer/regexp.cc b/test/fuzzer/regexp.cc
|
| index 40e34707acd4e39378264baad312fb5a21ac05c9..874a434476039753f167e4c329737d136a476137 100644
|
| --- a/test/fuzzer/regexp.cc
|
| +++ b/test/fuzzer/regexp.cc
|
| @@ -62,7 +62,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
| v8::TryCatch try_catch(isolate);
|
| i::MaybeHandle<i::JSRegExp> maybe_regexp =
|
| i::JSRegExp::New(source, static_cast<i::JSRegExp::Flags>(flags));
|
| - if (!maybe_regexp.ToHandle(®exp)) continue;
|
| + if (!maybe_regexp.ToHandle(®exp)) {
|
| + i_isolate->clear_pending_exception();
|
| + continue;
|
| + }
|
| }
|
| Test(isolate, regexp, one_byte, results_array);
|
| Test(isolate, regexp, two_byte, results_array);
|
|
|