Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: include/v8.h

Issue 1148383007: Add {Map,Set}::AsArray to the API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698