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

Unified Diff: src/js/harmony-array-includes.js

Issue 1411653002: Install iterator meta objects via utils object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comments 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 | « src/js/harmony-array.js ('k') | src/js/iterator-prototype.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/harmony-array-includes.js
diff --git a/src/js/harmony-array-includes.js b/src/js/harmony-array-includes.js
index a6b59137d217f6a4c961333bca2220f554d0a6f6..54f68a7ce30d3e86f66432c9bdb75a6413c81d35 100644
--- a/src/js/harmony-array-includes.js
+++ b/src/js/harmony-array-includes.js
@@ -9,6 +9,11 @@
%CheckIsBootstrapping();
var GlobalArray = global.Array;
+var SameValueZero;
+
+utils.Import(function(from) {
+ SameValueZero = from.SameValueZero;
+});
// -------------------------------------------------------------------
@@ -34,7 +39,7 @@ function InnerArrayIncludes(searchElement, fromIndex, array, length) {
while (k < length) {
var elementK = array[k];
- if ($sameValueZero(searchElement, elementK)) {
+ if (SameValueZero(searchElement, elementK)) {
return true;
}
« no previous file with comments | « src/js/harmony-array.js ('k') | src/js/iterator-prototype.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698