| Index: src/runtime.cc
|
| ===================================================================
|
| --- src/runtime.cc (revision 620)
|
| +++ src/runtime.cc (working copy)
|
| @@ -1905,10 +1905,8 @@
|
| return Heap::ToBoolean(object->HasElement(index));
|
| }
|
|
|
| - LookupResult result;
|
| - object->LocalLookup(key, &result);
|
| - if (!result.IsProperty()) return Heap::false_value();
|
| - return Heap::ToBoolean(!result.IsDontEnum());
|
| + PropertyAttributes att = object->GetLocalPropertyAttribute(key);
|
| + return Heap::ToBoolean(att != ABSENT && att != DONT_ENUM);
|
| }
|
|
|
|
|
|
|