Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index ec91cc877909424dcb42589c25b2b4184daf0a1a..42fc3c9bd66fdd2742983340db3b41b0ad158114 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -152,8 +152,8 @@ void MessageHandler::ReportMessage(MessageLocation* loc, |
Handle<String> MessageHandler::GetMessage(Handle<Object> data) { |
Handle<String> fmt_str = Factory::LookupAsciiSymbol("FormatMessage"); |
Handle<JSFunction> fun = |
- Handle<JSFunction>( |
- JSFunction::cast(Top::builtins()->GetProperty(*fmt_str))); |
+ Handle<JSFunction>(JSFunction::cast( |
+ Top::builtins()->GetPropertyNoExceptionThrown(*fmt_str))); |
Object** argv[1] = { data.location() }; |
bool caught_exception; |