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

Unified Diff: src/array.js

Issue 194873003: ArrayUnshift() should not modify length of a frozen object. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « no previous file | test/mjsunit/regress/regress-350890.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/array.js
diff --git a/src/array.js b/src/array.js
index 372b7ece6382118a7a578e9a2d0f40ac43ae222a..b68876a14ce5d7483b30ce6e0fbb065366247839 100644
--- a/src/array.js
+++ b/src/array.js
@@ -663,6 +663,7 @@ function ArrayUnshift(arg1) { // length == 1
["Array.prototype.shift"]);
}
}
+ return this.length;
}
SimpleMove(this, 0, 0, len, num_arguments);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-350890.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698