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

Unified Diff: src/array.js

Issue 903004: Some cosmetic issues. (Closed)
Patch Set: foobar Created 10 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 | src/ia32/stub-cache-ia32.cc » ('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 e2aa4ad116724922d55dc7b9ffa129b967f23596..95d4ada1646e41d415b43e468717638af1119124 100644
--- a/src/array.js
+++ b/src/array.js
@@ -1107,7 +1107,7 @@ function SetupArray() {
if (specialFunctions.hasOwnProperty(name)) {
f = specialFunctions[name];
}
- if (arguments.length == 3) {
+ if (!IS_UNDEFINED(len)) {
%FunctionSetLength(f, len);
}
return f;
« no previous file with comments | « no previous file | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698