| Index: src/ic.cc
|
| diff --git a/src/ic.cc b/src/ic.cc
|
| index 495c7273055e50ac77a242f511ed677b07e65d8d..90bf9814bbed0b46932f38deb6dd821964e2455f 100644
|
| --- a/src/ic.cc
|
| +++ b/src/ic.cc
|
| @@ -598,11 +598,11 @@ MaybeObject* LoadIC::Load(Handle<Object> object,
|
|
|
| PropertyAttributes attr;
|
| // Get the property.
|
| - Handle<Object> result =
|
| - Object::GetProperty(object, object, &lookup, name, &attr);
|
| - RETURN_IF_EMPTY_HANDLE(isolate(), result);
|
| - // If the property is not present, check if we need to throw an
|
| - // exception.
|
| + Handle<Object> result;
|
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| + isolate(), result,
|
| + Object::GetProperty(object, object, &lookup, name, &attr));
|
| + // If the property is not present, check if we need to throw an exception.
|
| if ((lookup.IsInterceptor() || lookup.IsHandler()) &&
|
| attr == ABSENT && IsUndeclaredGlobal(object)) {
|
| return ReferenceError("not_defined", name);
|
|
|