Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index c375bb4848f533273fe0179222bfe4d2c71017e5..2744cc40d0c77e54ed6e62735deed18b232faceb 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1982,17 +1982,19 @@ class JSReceiver: public HeapObject { |
Handle<JSReceiver> object, uint32_t index, |
LanguageMode language_mode = SLOPPY); |
- MUST_USE_RESULT static Object* DefineProperty(Isolate* isolate, |
- Handle<Object> object, |
- Handle<Object> name, |
- Handle<Object> attributes); |
+ MUST_USE_RESULT static Object* DefineProperty( |
+ Isolate* isolate, Handle<Object> object, Handle<Object> name, |
+ Handle<Object> attributes, |
+ CallInterceptors call_interceptors = CallInterceptors::kDontSkip); |
+ |
MUST_USE_RESULT static MaybeHandle<Object> DefineProperties( |
Isolate* isolate, Handle<Object> object, Handle<Object> properties); |
// "virtual" dispatcher to the correct [[DefineOwnProperty]] implementation. |
MUST_USE_RESULT static Maybe<bool> DefineOwnProperty( |
Isolate* isolate, Handle<JSReceiver> object, Handle<Object> key, |
- PropertyDescriptor* desc, ShouldThrow should_throw); |
+ PropertyDescriptor* desc, ShouldThrow should_throw, |
+ CallInterceptors call_interceptors = CallInterceptors::kDontSkip); |
// ES6 7.3.4 (when passed DONT_THROW) |
MUST_USE_RESULT static Maybe<bool> CreateDataProperty( |
@@ -2001,9 +2003,11 @@ class JSReceiver: public HeapObject { |
// ES6 9.1.6.1 |
MUST_USE_RESULT static Maybe<bool> OrdinaryDefineOwnProperty( |
Isolate* isolate, Handle<JSObject> object, Handle<Object> key, |
- PropertyDescriptor* desc, ShouldThrow should_throw); |
+ PropertyDescriptor* desc, ShouldThrow should_throw, |
+ CallInterceptors call_interceptors = CallInterceptors::kDontSkip); |
MUST_USE_RESULT static Maybe<bool> OrdinaryDefineOwnProperty( |
LookupIterator* it, PropertyDescriptor* desc, ShouldThrow should_throw); |
+ |
// ES6 9.1.6.2 |
MUST_USE_RESULT static Maybe<bool> IsCompatiblePropertyDescriptor( |
Isolate* isolate, bool extensible, PropertyDescriptor* desc, |
@@ -8232,7 +8236,8 @@ class JSProxy: public JSReceiver { |
// ES6 9.5.6 |
MUST_USE_RESULT static Maybe<bool> DefineOwnProperty( |
Isolate* isolate, Handle<JSProxy> object, Handle<Object> key, |
- PropertyDescriptor* desc, ShouldThrow should_throw); |
+ PropertyDescriptor* desc, ShouldThrow should_throw, |
+ CallInterceptors call_interceptors = CallInterceptors::kDontSkip); |
// ES6 9.5.7 |
MUST_USE_RESULT static Maybe<bool> HasProperty(Isolate* isolate, |
@@ -8640,7 +8645,8 @@ class JSTypedArray: public JSArrayBufferView { |
// ES6 9.4.5.3 |
MUST_USE_RESULT static Maybe<bool> DefineOwnProperty( |
Isolate* isolate, Handle<JSTypedArray> o, Handle<Object> key, |
- PropertyDescriptor* desc, ShouldThrow should_throw); |
+ PropertyDescriptor* desc, ShouldThrow should_throw, |
+ CallInterceptors call_interceptors = CallInterceptors::kDontSkip); |
DECLARE_CAST(JSTypedArray) |
@@ -8768,15 +8774,16 @@ class JSArray: public JSObject { |
// ES6 9.4.2.1 |
MUST_USE_RESULT static Maybe<bool> DefineOwnProperty( |
Isolate* isolate, Handle<JSArray> o, Handle<Object> name, |
- PropertyDescriptor* desc, ShouldThrow should_throw); |
+ PropertyDescriptor* desc, ShouldThrow should_throw, |
+ CallInterceptors call_interceptors = CallInterceptors::kDontSkip); |
static bool AnythingToArrayLength(Isolate* isolate, |
Handle<Object> length_object, |
uint32_t* output); |
- MUST_USE_RESULT static Maybe<bool> ArraySetLength(Isolate* isolate, |
- Handle<JSArray> a, |
- PropertyDescriptor* desc, |
- ShouldThrow should_throw); |
+ MUST_USE_RESULT static Maybe<bool> ArraySetLength( |
+ Isolate* isolate, Handle<JSArray> a, PropertyDescriptor* desc, |
+ ShouldThrow should_throw, |
+ CallInterceptors call_interceptors = CallInterceptors::kDontSkip); |
// Checks whether the Array has the current realm's Array.prototype as its |
// prototype. This function is best-effort and only gives a conservative |