Revision: 12976 Author: [email protected] Date: Thu Nov 15 07:41:12 2012 Log: Fix assert failure in array slice
[email protected] BUG= Review URL: https://codereview.chromium.org/11412005 http://code.google.com/p/v8/source/detail?r=12976 Modified: /branches/bleeding_edge/src/elements.cc ======================================= --- /branches/bleeding_edge/src/elements.cc Thu Nov 15 04:19:14 2012 +++ /branches/bleeding_edge/src/elements.cc Thu Nov 15 07:41:12 2012 @@ -696,7 +696,7 @@ } } } - if (from->length() == 0) { + if (from->length() == 0 || copy_size == 0) { return from; } return ElementsAccessorSubclass::CopyElementsImpl( -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
