| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 65022887cfe6b5120acbb3d4de47b54300d6243c..461578ba85c875bc75dc2be10d7ce8164cc079be 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1081,9 +1081,9 @@ bool Object::HasSpecificClassOf(String* name) {
|
| }
|
|
|
|
|
| -Handle<Object> Object::GetElement(Isolate* isolate,
|
| - Handle<Object> object,
|
| - uint32_t index) {
|
| +MaybeHandle<Object> Object::GetElement(Isolate* isolate,
|
| + Handle<Object> object,
|
| + uint32_t index) {
|
| // GetElement can trigger a getter which can cause allocation.
|
| // This was not always the case. This ASSERT is here to catch
|
| // leftover incorrect uses.
|
| @@ -1096,8 +1096,8 @@ Handle<Object> Object::GetElementNoExceptionThrown(Isolate* isolate,
|
| Handle<Object> object,
|
| uint32_t index) {
|
| Handle<Object> result =
|
| - Object::GetElementWithReceiver(isolate, object, object, index);
|
| - CHECK_NOT_EMPTY_HANDLE(isolate, result);
|
| + Object::GetElementWithReceiver(
|
| + isolate, object, object, index).ToHandleChecked();
|
| return result;
|
| }
|
|
|
|
|