Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 25bc54685f4435d384acce81177734073374172e..12ced01dd377c61c1301f29a2a5bd0b6e7b7b627 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1182,7 +1182,7 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) { |
fatal_exception_depth++; |
PrintF(stderr, |
"%s\n\nFROM\n", |
- *MessageHandler::GetLocalizedMessage(this, message_obj)); |
+ MessageHandler::GetLocalizedMessage(this, message_obj).get()); |
PrintCurrentStackTrace(stderr); |
OS::Abort(); |
} |
@@ -1197,13 +1197,13 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) { |
if (exception->IsString() && location->script()->name()->IsString()) { |
OS::PrintError( |
"Extension or internal compilation error: %s in %s at line %d.\n", |
- *String::cast(exception)->ToCString(), |
- *String::cast(location->script()->name())->ToCString(), |
+ String::cast(exception)->ToCString().get(), |
+ String::cast(location->script()->name())->ToCString().get(), |
line_number + 1); |
} else if (location->script()->name()->IsString()) { |
OS::PrintError( |
"Extension or internal compilation error in %s at line %d.\n", |
- *String::cast(location->script()->name())->ToCString(), |
+ String::cast(location->script()->name())->ToCString().get(), |
line_number + 1); |
} else { |
OS::PrintError("Extension or internal compilation error.\n"); |