Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 067a2963b48e4550207f01669f9d8d7ed9bd9ed8..a03087bd776387a6f37c5330ec59c02753a48089 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -163,9 +163,11 @@ RUNTIME_FUNCTION(Runtime_CollectStackTrace) { |
if (!isolate->bootstrapper()->IsActive()) { |
// Optionally capture a more detailed stack trace for the message. |
- isolate->CaptureAndSetDetailedStackTrace(error_object); |
+ RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, isolate->CaptureAndSetDetailedStackTrace(error_object)); |
// Capture a simple stack trace for the stack property. |
- isolate->CaptureAndSetSimpleStackTrace(error_object, caller); |
+ RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, isolate->CaptureAndSetSimpleStackTrace(error_object, caller)); |
} |
return isolate->heap()->undefined_value(); |
} |