| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 3868011e4fa6692bf4f48ba2321f7b4b424ddc8b..2b4c731cf54ba177e90cfcfdaac5b0a1b8ec2b62 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -423,7 +423,11 @@ MUST_USE_RESULT static MaybeHandle<Object> GetOwnProperty(Isolate* isolate,
|
| if (attrs == ABSENT) return factory->undefined_value();
|
|
|
| // Get AccessorPair if present.
|
| - maybe_accessors = JSObject::GetOwnElementAccessorPair(obj, index);
|
| + Handle<Object> structure;
|
| + if (JSObject::GetOwnElementStructure(obj, index).ToHandle(&structure) &&
|
| + structure->IsAccessorPair()) {
|
| + maybe_accessors = Handle<AccessorPair>::cast(structure);
|
| + }
|
|
|
| // Get value if not an AccessorPair.
|
| if (maybe_accessors.is_null()) {
|
|
|