| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 117e5ab36f6f7b7743ea43ef2e666220ee090e23..c7ec871e8fb30e158a25662e9c4d65e574337fdb 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -4246,9 +4246,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DeleteProperty) {
|
| }
|
|
|
|
|
| -static Object* HasLocalPropertyImplementation(Isolate* isolate,
|
| - Handle<JSObject> object,
|
| - Handle<String> key) {
|
| +static Object* HasOwnPropertyImplementation(Isolate* isolate,
|
| + Handle<JSObject> object,
|
| + Handle<String> key) {
|
| if (object->HasLocalProperty(*key)) return isolate->heap()->true_value();
|
| // Handle hidden prototypes. If there's a hidden prototype above this thing
|
| // then we have to check it for properties, because they are supposed to
|
| @@ -4256,15 +4256,15 @@ static Object* HasLocalPropertyImplementation(Isolate* isolate,
|
| Handle<Object> proto(object->GetPrototype());
|
| if (proto->IsJSObject() &&
|
| Handle<JSObject>::cast(proto)->map()->is_hidden_prototype()) {
|
| - return HasLocalPropertyImplementation(isolate,
|
| - Handle<JSObject>::cast(proto),
|
| - key);
|
| + return HasOwnPropertyImplementation(isolate,
|
| + Handle<JSObject>::cast(proto),
|
| + key);
|
| }
|
| return isolate->heap()->false_value();
|
| }
|
|
|
|
|
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_HasLocalProperty) {
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_HasOwnProperty) {
|
| NoHandleAllocation ha;
|
| ASSERT(args.length() == 2);
|
| CONVERT_CHECKED(String, key, args[1]);
|
| @@ -4288,9 +4288,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_HasLocalProperty) {
|
| }
|
| // Slow case.
|
| HandleScope scope(isolate);
|
| - return HasLocalPropertyImplementation(isolate,
|
| - Handle<JSObject>(object),
|
| - Handle<String>(key));
|
| + return HasOwnPropertyImplementation(isolate,
|
| + Handle<JSObject>(object),
|
| + Handle<String>(key));
|
| } else if (obj->IsString() && key_is_array_index) {
|
| // Well, there is one exception: Handle [] on strings.
|
| String* string = String::cast(obj);
|
|
|