| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index a4d1ada86adf84432cb7ef8d662f810a3c43707d..ca99bef92104328261b4c112821bd31270d0d712 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -2637,6 +2637,10 @@ enum AccessControl {
|
| PROHIBITS_OVERWRITING = 1 << 2
|
| };
|
|
|
| +/**
|
| + * Integrity level for objects.
|
| + */
|
| +enum class IntegrityLevel { kFrozen, kSealed };
|
|
|
| /**
|
| * A JavaScript object (ECMA-262, 4.3.3)
|
| @@ -2828,6 +2832,11 @@ class V8_EXPORT Object : public Value {
|
| */
|
| Local<String> GetConstructorName();
|
|
|
| + /**
|
| + * Sets the integrity level of the object.
|
| + */
|
| + Maybe<bool> SetIntegrityLevel(Local<Context> context, IntegrityLevel level);
|
| +
|
| /** Gets the number of internal fields for this Object. */
|
| int InternalFieldCount();
|
|
|
|
|