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

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

Issue 1131843002: Revert of Revert of Wrap runtime.js in a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/harmony-array.js ('k') | src/harmony-regexp.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-array-includes.js
diff --git a/src/harmony-array-includes.js b/src/harmony-array-includes.js
index c8cf788072dd2ca5d9e1feb68a141de287e19525..dc54469b00e33ffae645d137ede861a7319c0ea3 100644
--- a/src/harmony-array-includes.js
+++ b/src/harmony-array-includes.js
@@ -16,14 +16,14 @@
// https://github.com/tc39/Array.prototype.includes
// 6e3b78c927aeda20b9d40e81303f9d44596cd904
function ArrayIncludes(searchElement, fromIndex) {
- var array = ToObject(this);
- var len = ToLength(array.length);
+ var array = $toObject(this);
+ var len = $toLength(array.length);
if (len === 0) {
return false;
}
- var n = ToInteger(fromIndex);
+ var n = $toInteger(fromIndex);
var k;
if (n >= 0) {
@@ -37,7 +37,7 @@
while (k < len) {
var elementK = array[k];
- if (SameValueZero(searchElement, elementK)) {
+ if ($sameValueZero(searchElement, elementK)) {
return true;
}
« no previous file with comments | « src/harmony-array.js ('k') | src/harmony-regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698