Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 24c8c14f1ced7a1b8a266342cf287cf81f22b18a..586e23d55921db8be5636c5a2a982ac57b9c8d8d 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -280,19 +280,12 @@ bool Object::KeyEquals(Object* second) { |
} |
-bool Object::FilterKey(PropertyAttributes filter) { |
- if ((filter & SYMBOLIC) && IsSymbol()) { |
- return true; |
- } |
- |
- if ((filter & PRIVATE_SYMBOL) && IsSymbol() && |
- Symbol::cast(this)->is_private()) { |
- return true; |
- } |
- |
- if ((filter & STRING) && !IsSymbol()) { |
- return true; |
+bool Object::FilterKey(PropertyFilter filter) { |
+ if (IsSymbol()) { |
+ if (filter & SKIP_SYMBOLS) return true; |
+ if (Symbol::cast(this)->is_private()) return true; |
} |
+ if ((filter & SKIP_STRINGS) && !IsSymbol()) return true; |
return false; |
} |