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

Unified Diff: src/harmony-array.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/generator.js ('k') | src/harmony-atomics.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-array.js
diff --git a/src/harmony-array.js b/src/harmony-array.js
index 49176460ad2ee42fe38dcc4d6ef18d20e3f4e06e..885950b8ea0a324afd23b7a877499a32a8a191f3 100644
--- a/src/harmony-array.js
+++ b/src/harmony-array.js
@@ -14,7 +14,7 @@
var GetIterator;
var GetMethod;
var GlobalArray = global.Array;
-var GlobalSymbol = global.Symbol;
+var iteratorSymbol = utils.ImportNow("iterator_symbol");
var MathMax;
var MathMin;
var ObjectIsFrozen;
@@ -221,7 +221,7 @@ function ArrayFrom(arrayLike, mapfn, receiver) {
}
}
- var iterable = GetMethod(items, symbolIterator);
+ var iterable = GetMethod(items, iteratorSymbol);
var k;
var result;
var mappedValue;
« no previous file with comments | « src/generator.js ('k') | src/harmony-atomics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698