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

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

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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
Index: src/harmony-array-includes.js
diff --git a/src/harmony-array-includes.js b/src/harmony-array-includes.js
index b133f1ec8c511e49e333856a4cace3089e263127..8710d9a300d13386cbc140dfcfeab0c569bdefa6 100644
--- a/src/harmony-array-includes.js
+++ b/src/harmony-array-includes.js
@@ -16,7 +16,7 @@ var GlobalArray = global.Array;
// https://github.com/tc39/Array.prototype.includes
// 6e3b78c927aeda20b9d40e81303f9d44596cd904
function ArrayIncludes(searchElement, fromIndex) {
- var array = $toObject(this);
+ var array = TO_OBJECT(this);
var len = $toLength(array.length);
if (len === 0) {

Powered by Google App Engine
This is Rietveld 408576698