| Index: src/ic.cc
|
| diff --git a/src/ic.cc b/src/ic.cc
|
| index e8c453f2c02fafe9c02cf5a7d8b426c6882f4473..a00df8537c0724e5c1726d127f76641989809850 100644
|
| --- a/src/ic.cc
|
| +++ b/src/ic.cc
|
| @@ -1226,9 +1226,10 @@ MaybeObject* StoreIC::Store(Handle<Object> object,
|
| // Check if the given name is an array index.
|
| uint32_t index;
|
| if (name->AsArrayIndex(&index)) {
|
| - Handle<Object> result =
|
| - JSObject::SetElement(receiver, index, value, NONE, strict_mode());
|
| - RETURN_IF_EMPTY_HANDLE(isolate(), result);
|
| + Handle<Object> result;
|
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| + isolate(), result,
|
| + JSObject::SetElement(receiver, index, value, NONE, strict_mode()));
|
| return *value;
|
| }
|
|
|
|
|