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

Unified Diff: src/collection-iterator.js

Issue 328093002: Add @@iterator for generator objects (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/collection-iterator.js
diff --git a/src/collection-iterator.js b/src/collection-iterator.js
index fbf30ae24068d218cdfefdd1852d93817707b1d2..2436a931e28bc4acde80f5c4a8143cc0bff5b8f3 100644
--- a/src/collection-iterator.js
+++ b/src/collection-iterator.js
@@ -59,7 +59,7 @@ function SetUpSetIterator() {
));
%FunctionSetName(SetIteratorSymbolIterator, '[Symbol.iterator]');
- %SetProperty(SetIterator.prototype, InternalSymbol('Symbol.iterator'),
+ %SetProperty(SetIterator.prototype, symbolIterator,
SetIteratorSymbolIterator, DONT_ENUM);
}
@@ -74,7 +74,7 @@ function ExtendSetPrototype() {
'values', SetValues
));
- %SetProperty($Set.prototype, InternalSymbol('Symbol.iterator'), SetValues,
+ %SetProperty($Set.prototype, symbolIterator, SetValues,
DONT_ENUM);
}
@@ -139,7 +139,7 @@ function SetUpMapIterator() {
));
%FunctionSetName(MapIteratorSymbolIterator, '[Symbol.iterator]');
- %SetProperty(MapIterator.prototype, InternalSymbol('Symbol.iterator'),
+ %SetProperty(MapIterator.prototype, symbolIterator,
MapIteratorSymbolIterator, DONT_ENUM);
}
@@ -155,7 +155,7 @@ function ExtendMapPrototype() {
'values', MapValues
));
- %SetProperty($Map.prototype, InternalSymbol('Symbol.iterator'), MapEntries,
+ %SetProperty($Map.prototype, symbolIterator, MapEntries,
DONT_ENUM);
}
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698