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

Unified Diff: src/builtins.cc

Issue 3218010: Fix mozilla and debug check failures.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 4 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/mozilla/mozilla.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
===================================================================
--- src/builtins.cc (revision 5376)
+++ src/builtins.cc (working copy)
@@ -665,8 +665,9 @@
// Return empty array when no arguments are supplied.
if (n_arguments == 0) {
- // No handle scope needed since we return directly.
- return *Factory::NewJSArray(0);
+ Object* result = AllocateEmptyJSArray();
+ if (result->IsFailure()) return result;
+ return JSArray::cast(result);
}
int relative_start = 0;
« no previous file with comments | « no previous file | test/mozilla/mozilla.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698