Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 16975d5af6b8144633c71d88857798eac3d30ca1..fb07e9ce8c68cdf94d29665cafa614b265b31b8f 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -2952,6 +2952,12 @@ class V8_EXPORT Map : public Object { |
size_t Size() const; |
/** |
+ * Returns an array of [key, value] arrays representing the contents |
+ * of this Map. |
+ */ |
+ Local<Array> AsArray() const; |
+ |
+ /** |
* Creates a new Map. |
*/ |
static Local<Map> New(Isolate* isolate); |
@@ -2972,6 +2978,11 @@ class V8_EXPORT Set : public Object { |
size_t Size() const; |
/** |
+ * Returns an array of the keys in this Set. |
+ */ |
+ Local<Array> AsArray() const; |
+ |
+ /** |
* Creates a new Set. |
*/ |
static Local<Set> New(Isolate* isolate); |