Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index ba74318464cd5c8b8e5148028b43b4fe35addeb9..3445d4ddb461a95f07ec26824dd78828896d562c 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -154,9 +154,8 @@ Handle<String> MessageHandler::GetMessage(Isolate* isolate, |
Factory* factory = isolate->factory(); |
Handle<String> fmt_str = |
factory->InternalizeOneByteString(STATIC_ASCII_VECTOR("FormatMessage")); |
- Handle<JSFunction> fun = Handle<JSFunction>::cast( |
- GlobalObject::GetPropertyNoExceptionThrown( |
- isolate->js_builtins_object(), fmt_str)); |
+ Handle<JSFunction> fun = Handle<JSFunction>::cast(Object::GetProperty( |
+ isolate->js_builtins_object(), fmt_str).ToHandleChecked()); |
Handle<JSMessageObject> message = Handle<JSMessageObject>::cast(data); |
Handle<Object> argv[] = { Handle<Object>(message->type(), isolate), |
Handle<Object>(message->arguments(), isolate) }; |