Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 6e9aef51dc1649680c5708fe9da276243b42791e..dbbd9e33b58e05311f22fe36c5656551ab9585c2 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -992,6 +992,9 @@ template <class C> inline bool Is(Object* obj); |
V(WeakHashTable) \ |
V(OrderedHashTable) |
+// The element types selection for CreateListFromArrayLike. |
+enum class ElementTypes { kAll, kStringAndSymbol }; |
+ |
// Object is the abstract superclass for all classes in the |
// object hierarchy. |
// Object does not use any virtual functions to avoid the |
@@ -1165,6 +1168,10 @@ class Object { |
MUST_USE_RESULT static MaybeHandle<Object> GetMethod( |
Handle<JSReceiver> receiver, Handle<Name> name); |
+ // ES6 section 7.3.17 CreateListFromArrayLike |
+ MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike( |
+ Isolate* isolate, Handle<Object> object, ElementTypes element_types); |
+ |
// Check whether |object| is an instance of Error or NativeError. |
static bool IsErrorObject(Isolate* isolate, Handle<Object> object); |