Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 5a872857bbab22ebeddbbc1a1212d09631803a06..efb174503750781ece47ddb977663eda321c57d4 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1785,6 +1785,7 @@ enum AccessorComponent { |
enum GetKeysConversion { KEEP_NUMBERS, CONVERT_TO_STRING }; |
+enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; |
// JSReceiver includes types on which properties can be defined, i.e., |
// JSObject and JSProxy. |
@@ -1946,13 +1947,10 @@ class JSReceiver: public HeapObject { |
inline static Handle<Smi> GetOrCreateIdentityHash( |
Handle<JSReceiver> object); |
- enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; |
- |
// ES6 [[OwnPropertyKeys]] (modulo return type) |
MUST_USE_RESULT static MaybeHandle<FixedArray> OwnPropertyKeys( |
Handle<JSReceiver> object) { |
- return GetKeys(object, JSReceiver::OWN_ONLY, ALL_PROPERTIES, |
- CONVERT_TO_STRING); |
+ return GetKeys(object, OWN_ONLY, ALL_PROPERTIES, CONVERT_TO_STRING); |
} |
// Computes the enumerable keys for a JSObject. Used for implementing |