[execution] Add not-terminating DCHECK in InvokeWithTryCatch

Bug: chromium:1393272
Change-Id: Id377fd048403bd9d901edfd72786b1f2bd7124c0
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4215298
Reviewed-by: Jakob Linke <jgruber@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85613}
This commit is contained in:
Camillo Bruni 2023-02-02 10:45:01 +01:00 committed by V8 LUCI CQ
parent 8dfd2ce708
commit dee91eea61

View File

@ -468,6 +468,7 @@ V8_WARN_UNUSED_RESULT MaybeHandle<Object> Invoke(Isolate* isolate,
MaybeHandle<Object> InvokeWithTryCatch(Isolate* isolate,
const InvokeParams& params) {
DCHECK(!isolate->is_execution_terminating());
bool is_termination = false;
MaybeHandle<Object> maybe_result;
if (params.exception_out != nullptr) {