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

Unified Diff: src/collection.js

Issue 259883002: ES6: Add support for Map and Set Iterator (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code review changes Created 6 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 | « src/bootstrapper.cc ('k') | src/collection-iterator.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/collection.js
diff --git a/src/collection.js b/src/collection.js
index 3ed452eb38f02abcc031d00adb5a8dfba37aed31..0d8dd77f7bd3be944ffcd25b51544d8ebe740c00 100644
--- a/src/collection.js
+++ b/src/collection.js
@@ -79,7 +79,7 @@ function SetForEach(f, receiver) {
throw MakeTypeError('called_non_callable', [f]);
}
- var iterator = %SetCreateIterator(this, ITERATOR_KIND_VALUES);
+ var iterator = new SetIterator(this, ITERATOR_KIND_VALUES);
var entry;
var stepping = %_DebugCallbackSupportsStepping(f);
while (!(entry = %SetIteratorNext(iterator)).done) {
@@ -190,7 +190,7 @@ function MapForEach(f, receiver) {
throw MakeTypeError('called_non_callable', [f]);
}
- var iterator = %MapCreateIterator(this, ITERATOR_KIND_ENTRIES);
+ var iterator = new MapIterator(this, ITERATOR_KIND_ENTRIES);
var entry;
var stepping = %_DebugCallbackSupportsStepping(f);
while (!(entry = %MapIteratorNext(iterator)).done) {
« no previous file with comments | « src/bootstrapper.cc ('k') | src/collection-iterator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698