| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 26a55ac75b36489e84028946e265318abce52fbb..e8938862a38b14ac477f58339cfc69782497077c 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -714,6 +714,11 @@ RUNTIME_FUNCTION(Runtime_HasOwnProperty) {
|
| if (index < static_cast<uint32_t>(string->length())) {
|
| return isolate->heap()->true_value();
|
| }
|
| + } else if (object->IsJSProxy()) {
|
| + Maybe<bool> result =
|
| + JSReceiver::HasOwnProperty(Handle<JSProxy>::cast(object), key);
|
| + if (!result.IsJust()) return isolate->heap()->exception();
|
| + return isolate->heap()->ToBoolean(result.FromJust());
|
| }
|
| return isolate->heap()->false_value();
|
| }
|
|
|