Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index a32717362965973cc961e9f4ba7ebfaa2b073f66..f01c3d120af1fe6bd00647712ab0e4622b4bb761 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1082,7 +1082,9 @@ Handle<Code> KeyedLoadIC::LoadElementStub(Handle<JSObject> receiver) { |
MaybeObject* KeyedLoadIC::Load(Handle<Object> object, Handle<Object> key) { |
if (MigrateDeprecated(object)) { |
- return Runtime::GetObjectPropertyOrFail(isolate(), object, key); |
+ Handle<Object> result = Runtime::GetObjectProperty(isolate(), object, key); |
+ RETURN_IF_EMPTY_HANDLE(isolate(), result); |
+ return *result; |
} |
MaybeObject* maybe_object = NULL; |
@@ -1121,7 +1123,9 @@ MaybeObject* KeyedLoadIC::Load(Handle<Object> object, Handle<Object> key) { |
} |
if (maybe_object != NULL) return maybe_object; |
- return Runtime::GetObjectPropertyOrFail(isolate(), object, key); |
+ Handle<Object> result = Runtime::GetObjectProperty(isolate(), object, key); |
+ RETURN_IF_EMPTY_HANDLE(isolate(), result); |
+ return *result; |
} |