| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index b5db5fe4295d11d17589fdeb07fefdbf2cde7e81..3b05e4a153a98d2420168d96e0fa65876fd83e7e 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -2632,6 +2632,21 @@ enum PropertyFilter {
|
| };
|
|
|
| /**
|
| + * Keys/Properties filter enums:
|
| + *
|
| + * KeyCollectionMode limits the range of collected properties. kOwnOnly limits
|
| + * the collected properties to the given Object only. kIncludesPrototypes will
|
| + * include all keys of the objects's prototype chain as well.
|
| + */
|
| +enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes };
|
| +
|
| +/**
|
| + * kIncludesIndices allows for integer indices to be collected, while
|
| + * kSkipIndices will exclude integer indicies from being collected.
|
| + */
|
| +enum class IndexFilter { kIncludeIndices, kSkipIndices };
|
| +
|
| +/**
|
| * Integrity level for objects.
|
| */
|
| enum class IntegrityLevel { kFrozen, kSealed };
|
| @@ -2780,6 +2795,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, KeyCollectionMode mode,
|
| + PropertyFilter property_filter, IndexFilter index_filter);
|
|
|
| /**
|
| * This function has the same functionality as GetPropertyNames but
|
|
|