Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index bdc484dfd4b3746a566861cb1666c73248168f2f..9141bf29dce23f7d0cacecb50627e1932ce4a6ea 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -998,6 +998,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 |
@@ -1171,6 +1174,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); |