| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 7fbf6c94c67cb3cb24b8b5170ad207df19469855..e069b7994eb90cac0e86e5a75790f464f2275ac9 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -4157,6 +4157,22 @@ Object* JSReceiver::GetPrototype() {
|
| }
|
|
|
|
|
| +bool JSReceiver::HasProperty(String* name) {
|
| + if (IsJSProxy()) {
|
| + return JSProxy::cast(this)->HasPropertyWithHandler(name);
|
| + }
|
| + return GetPropertyAttribute(name) != ABSENT;
|
| +}
|
| +
|
| +
|
| +bool JSReceiver::HasLocalProperty(String* name) {
|
| + if (IsJSProxy()) {
|
| + return JSProxy::cast(this)->HasPropertyWithHandler(name);
|
| + }
|
| + return GetLocalPropertyAttribute(name) != ABSENT;
|
| +}
|
| +
|
| +
|
| PropertyAttributes JSReceiver::GetPropertyAttribute(String* key) {
|
| return GetPropertyAttributeWithReceiver(this, key);
|
| }
|
|
|