Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 4b7e0031c71321540547f0be5e151301a3b5128a..3eda230a939a1b5163516c1bdec461972e117a34 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2002,6 +2002,12 @@ class JSReceiver: public HeapObject { |
MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( |
Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); |
+ // Reads all enumerable own properties of source and adds them to target, |
+ // using either Set or CreateDataProperty depending on the use_set argument. |
+ MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( |
+ Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, |
+ bool use_set); |
+ |
// Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. |
MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); |
MUST_USE_RESULT static inline Maybe<bool> HasProperty( |