Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 68eea62a621e6eba7700a634b351c267d3a28031..fe880f8ee93ba628e1d764d54dfe48f44d6e882b 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1975,8 +1975,17 @@ |
Handle<JSReceiver> object); |
// ES6 [[OwnPropertyKeys]] (modulo return type) |
- MUST_USE_RESULT static inline MaybeHandle<FixedArray> OwnPropertyKeys( |
- Handle<JSReceiver> object); |
+ MUST_USE_RESULT static MaybeHandle<FixedArray> OwnPropertyKeys( |
+ Handle<JSReceiver> object) { |
+ return GetKeys(object, OWN_ONLY, ALL_PROPERTIES, CONVERT_TO_STRING); |
+ } |
+ |
+ // Computes the enumerable keys for a JSObject. Used for implementing |
+ // "for (n in object) { }". |
+ MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( |
+ Handle<JSReceiver> object, KeyCollectionType type, PropertyFilter filter, |
+ GetKeysConversion keys_conversion = KEEP_NUMBERS, |
+ bool filter_proxy_keys_ = true); |
MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnValues( |
Handle<JSReceiver> object, PropertyFilter filter); |
@@ -3971,8 +3980,6 @@ |
static Handle<OrderedHashSet> Add(Handle<OrderedHashSet> table, |
Handle<Object> value); |
- static Handle<FixedArray> ConvertToKeysArray(Handle<OrderedHashSet> table, |
- GetKeysConversion convert); |
}; |