| Index: src/execution.cc
|
| diff --git a/src/execution.cc b/src/execution.cc
|
| index 4ec18f87353255809d8545ec8ecee22e7e60dc2a..c8ddfafa5fa75479f022028b7485bf5f2d5ff12b 100644
|
| --- a/src/execution.cc
|
| +++ b/src/execution.cc
|
| @@ -99,6 +99,8 @@ MUST_USE_RESULT MaybeHandle<Object> Invoke(Isolate* isolate, bool is_construct,
|
| SealHandleScope shs(isolate);
|
| JSEntryFunction stub_entry = FUNCTION_CAST<JSEntryFunction>(code->entry());
|
|
|
| + if (FLAG_clear_exceptions_on_js_entry) isolate->clear_pending_exception();
|
| +
|
| // Call the function through the right JS entry stub.
|
| Object* orig_func = *new_target;
|
| Object* func = *target;
|
|
|