Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index b5db5fe4295d11d17589fdeb07fefdbf2cde7e81..916e6a551aa09849a00a720c89b9d0c6379c304a 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -2631,6 +2631,10 @@ enum PropertyFilter { |
| SKIP_SYMBOLS = 16 |
| }; |
| +enum KeysCollectionLimit { OWN_ONLY, INCLUDE_PROTOS }; |
|
Igor Sheludko
2016/05/25 14:52:56
WDYT about KeyCollectionMode? Why not enum class?
Camillo Bruni
2016/05/27 12:58:37
right, seems like a better choice.
|
| + |
| +enum IndexFilter { INCLUDE_INDICES, SKIP_INDICES }; |
| + |
| /** |
| * Integrity level for objects. |
| */ |
| @@ -2780,6 +2784,9 @@ class V8_EXPORT Object : public Value { |
| V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames()); |
| V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames( |
| Local<Context> context); |
| + V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames( |
| + Local<Context> context, KeysCollectionLimit limit, |
| + PropertyFilter property_filter, IndexFilter index_filter); |
| /** |
| * This function has the same functionality as GetPropertyNames but |