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

Unified Diff: src/iterator-prototype.js

Issue 1318043002: Native context: do not put public symbols and flags on the js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix and rebase Created 5 years, 4 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/i18n.js ('k') | src/json.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/iterator-prototype.js
diff --git a/src/iterator-prototype.js b/src/iterator-prototype.js
index 96dd7bfde1886cb4aa497735efad7230733f29bf..2f49d90b1c97baa9fd39723f5e559e426843bc07 100644
--- a/src/iterator-prototype.js
+++ b/src/iterator-prototype.js
@@ -9,13 +9,14 @@ var $iteratorPrototype;
%CheckIsBootstrapping();
var GlobalObject = global.Object;
+ var iteratorSymbol = utils.ImportNow("iterator_symbol");
// 25.1.2.1 %IteratorPrototype% [ @@iterator ] ( )
function IteratorPrototypeIterator() {
return this;
}
- utils.SetFunctionName(IteratorPrototypeIterator, symbolIterator);
- %AddNamedProperty($iteratorPrototype, symbolIterator,
+ utils.SetFunctionName(IteratorPrototypeIterator, iteratorSymbol);
+ %AddNamedProperty($iteratorPrototype, iteratorSymbol,
IteratorPrototypeIterator, DONT_ENUM);
})
« no previous file with comments | « src/i18n.js ('k') | src/json.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698