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

Unified Diff: include/v8.h

Issue 1378403004: [api] expose Array Iterators to API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased u_u Created 5 years, 2 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 25a1d58fb9e0ed1f46c389dfee0bdab7e459a10f..29f2508fd638c4d2187e748a1265a31b03303045 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2962,7 +2962,15 @@ class V8_EXPORT Array : public Object {
*/
static Local<Array> New(Isolate* isolate, int length = 0);
+ /**
+ * Access to Array Iterator methods
+ */
+ static Local<Function> GetKeysIterator(Isolate* isolate);
+ static Local<Function> GetValuesIterator(Isolate* isolate);
+ static Local<Function> GetEntriesIterator(Isolate* isolate);
+
V8_INLINE static Array* Cast(Value* obj);
+
private:
Array();
static void CheckCast(Value* obj);
« 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