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

Unified Diff: src/object-observe.js

Issue 1309243003: ES6: Array.prototype.slice and friends should use ToLength instead of ToUint32 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use a TO_LENGTH macro instead of the ToLengthFlagged function Created 5 years, 3 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/object-observe.js
diff --git a/src/object-observe.js b/src/object-observe.js
index ef3f0aa18d6343f32419f6a6faa36c35dd21a898..eec1ab5f2d24de5718e762dd57269542629ae729 100644
--- a/src/object-observe.js
+++ b/src/object-observe.js
@@ -693,7 +693,7 @@ $observeArrayMethods = [
// TODO(adamk): Figure out why this prototype removal has to
// happen as part of initial snapshotting.
-var removePrototypeFn = function(f, i) {
+var removePrototypeFn = function (f, i) {
Camillo Bruni 2015/09/09 13:51:16 DAT space :D
aperez 2015/09/09 18:20:45 Acknowledged.
if (i % 2 === 1) %FunctionRemovePrototype(f);
};
$observeObjectMethods.forEach(removePrototypeFn);

Powered by Google App Engine
This is Rietveld 408576698