Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 492e97e85ae3c2d5c85ca60d973ef5d0e487f0d8..94fee79b7658556788f4dc5f23e12ac91b7caed6 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1131,10 +1131,9 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) { |
// before throwing as uncaught exception. Note that the pending |
// exception object to be set later must not be turned into a string. |
if (exception_arg->IsJSObject() && !IsErrorObject(exception_arg)) { |
- bool failed = false; |
- exception_arg = |
- Execution::ToDetailString(this, exception_arg, &failed); |
- if (failed) { |
+ MaybeHandle<Object> maybe_exception = |
+ Execution::ToDetailString(this, exception_arg); |
+ if (!maybe_exception.ToHandle(&exception_arg)) { |
exception_arg = factory()->InternalizeOneByteString( |
STATIC_ASCII_VECTOR("exception")); |
} |