Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index c3e95c1ead25b22a22d4d7f30a287b874758b860..99d412d09e151d88db79ac895774d5f3f9d1d8fa 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1107,9 +1107,8 @@ Handle<Object> Factory::NewError(const char* maker, |
const char* message, |
Handle<JSArray> args) { |
Handle<String> make_str = InternalizeUtf8String(maker); |
- Handle<Object> fun_obj( |
- isolate()->js_builtins_object()->GetPropertyNoExceptionThrown(*make_str), |
- isolate()); |
+ Handle<Object> fun_obj = GlobalObject::GetPropertyNoExceptionThrown( |
+ isolate()->js_builtins_object(), make_str); |
// If the builtins haven't been properly configured yet this error |
// constructor may not have been defined. Bail out. |
if (!fun_obj->IsJSFunction()) { |
@@ -1139,9 +1138,9 @@ Handle<Object> Factory::NewError(Handle<String> message) { |
Handle<Object> Factory::NewError(const char* constructor, |
Handle<String> message) { |
Handle<String> constr = InternalizeUtf8String(constructor); |
- Handle<JSFunction> fun = Handle<JSFunction>( |
- JSFunction::cast(isolate()->js_builtins_object()-> |
- GetPropertyNoExceptionThrown(*constr))); |
+ Handle<JSFunction> fun = Handle<JSFunction>::cast( |
+ GlobalObject::GetPropertyNoExceptionThrown( |
+ isolate()->js_builtins_object(), constr)); |
Handle<Object> argv[] = { message }; |
// Invoke the JavaScript factory method. If an exception is thrown while |