diff --git a/src/api/api.cc b/src/api/api.cc index da477c87bb6c..72564037c612 100644 --- a/src/api/api.cc +++ b/src/api/api.cc @@ -10966,6 +10966,7 @@ void RecordReplayOnExceptionUnwind(Isolate* isolate) { return; Handle exception(isolate->pending_exception(), isolate); + recordreplay::Print("[PRO-1150] RecordReplayOnExceptionUnwind A %d", isolate->is_catchable_by_javascript(*exception)); if (!isolate->is_catchable_by_javascript(*exception)) return; @@ -10979,24 +10980,44 @@ void RecordReplayOnExceptionUnwind(Isolate* isolate) { std::vector frames; it.frame()->Summarize(&frames); if (!frames.empty()) { // There might not always be a frame due to RUN-1920. - auto& summary = frames.back().AsJavaScript(); - Handle shared(summary.function()->shared(), isolate); - Handle script(shared->script(), isolate); - if (script->IsScript()) { - Handle