| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 23ac7cea559046c152cf6eddf35eff24fca61507..afee50a8e3eb5059f1090b66a00b48b06e465e19 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2141,6 +2141,9 @@ class JSObject: public JSReceiver {
|
| MUST_USE_RESULT static Maybe<bool> SetPropertyWithInterceptor(
|
| LookupIterator* it, ShouldThrow should_throw, Handle<Object> value);
|
|
|
| + MUST_USE_RESULT static Maybe<bool> DefinePropertyWithInterceptor(
|
| + LookupIterator* it, ShouldThrow should_throw, PropertyDescriptor& desc);
|
| +
|
| // The API currently still wants DefineOwnPropertyIgnoreAttributes to convert
|
| // AccessorInfo objects to data fields. We allow FORCE_FIELD as an exception
|
| // to the default behavior that calls the setter.
|
| @@ -10763,6 +10766,7 @@ class InterceptorInfo: public Struct {
|
| DECL_ACCESSORS(query, Object)
|
| DECL_ACCESSORS(deleter, Object)
|
| DECL_ACCESSORS(enumerator, Object)
|
| + DECL_ACCESSORS(definer, Object)
|
| DECL_ACCESSORS(data, Object)
|
| DECL_BOOLEAN_ACCESSORS(can_intercept_symbols)
|
| DECL_BOOLEAN_ACCESSORS(all_can_read)
|
| @@ -10782,7 +10786,8 @@ class InterceptorInfo: public Struct {
|
| static const int kQueryOffset = kSetterOffset + kPointerSize;
|
| static const int kDeleterOffset = kQueryOffset + kPointerSize;
|
| static const int kEnumeratorOffset = kDeleterOffset + kPointerSize;
|
| - static const int kDataOffset = kEnumeratorOffset + kPointerSize;
|
| + static const int kDefinerOffset = kEnumeratorOffset + kPointerSize;
|
| + static const int kDataOffset = kDefinerOffset + kPointerSize;
|
| static const int kFlagsOffset = kDataOffset + kPointerSize;
|
| static const int kSize = kFlagsOffset + kPointerSize;
|
|
|
|
|