| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 5e472ba44a9551cdbe9f0c56ba7453333afadcea..692fa87e6b733f9d72c0fdad58ec0797abe68527 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10360,7 +10360,7 @@ int JSObject::NumberOfLocalProperties(PropertyAttributes filter) {
|
| int result = 0;
|
| for (int i = 0; i < descs->number_of_descriptors(); i++) {
|
| PropertyDetails details(descs->GetDetails(i));
|
| - if (details.IsProperty() && (details.attributes() & filter) == 0) {
|
| + if (descs->IsProperty(i) && (details.attributes() & filter) == 0) {
|
| result++;
|
| }
|
| }
|
|
|