| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index be1c86e74a9946738d99ee04b483f69ea8069333..479a2f886b0e0f7548a922c80befe86ef8deb922 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -2657,6 +2657,18 @@ enum AccessControl {
|
| };
|
|
|
| /**
|
| + * Property filter bits. They can be or'ed to build a composite filter.
|
| + */
|
| +enum PropertyFilter {
|
| + ALL_PROPERTIES = 0,
|
| + ONLY_WRITABLE = 1,
|
| + ONLY_ENUMERABLE = 2,
|
| + ONLY_CONFIGURABLE = 4,
|
| + SKIP_STRINGS = 8,
|
| + SKIP_SYMBOLS = 16
|
| +};
|
| +
|
| +/**
|
| * Integrity level for objects.
|
| */
|
| enum class IntegrityLevel { kFrozen, kSealed };
|
| @@ -2816,6 +2828,15 @@ class V8_EXPORT Object : public Value {
|
| Local<Context> context);
|
|
|
| /**
|
| + * Returns an array containing the names of the filtered properties
|
| + * of this object, including properties from prototype objects. The
|
| + * array returned by this method contains the same values as would
|
| + * be enumerated by a for-in statement over this object.
|
| + */
|
| + V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetOwnPropertyNames(
|
| + Local<Context> context, PropertyFilter filter);
|
| +
|
| + /**
|
| * Get the prototype object. This does not skip objects marked to
|
| * be skipped by __proto__ and it does not consult the security
|
| * handler.
|
|
|