| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 394deceaa8e82b3ea4b08ff0c2f159fbbf330325..c50b3c459bbd7443fb3cf7aa5e53c9dabd4502e3 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -5811,7 +5811,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalPropertyNames) {
|
| }
|
| }
|
| next_copy_index += local_property_count[i];
|
| - if (jsproto->HasHiddenProperties()) {
|
| +
|
| + // Hidden properties only show up if the filter does not skip strings.
|
| + if ((filter & STRING) == 0 && jsproto->HasHiddenProperties()) {
|
| hidden_strings++;
|
| }
|
| if (i < length - 1) {
|
|
|