Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index f4ce991a942d6f3db3061b632fa2da6db69f65f2..a7e1da9d5069d633482439fd75c90a797d346436 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -470,7 +470,8 @@ BUILTIN(ArrayPush) { |
if (new_length > elms_len) { |
// New backing storage is needed. |
int capacity = new_length + (new_length >> 1) + 16; |
- new_elms = isolate->factory()->NewFixedDoubleArray(capacity); |
+ new_elms = Handle<FixedDoubleArray>::cast( |
mvstanton
2014/04/23 16:15:17
Might have a comment that this is safe because we
|
+ isolate->factory()->NewFixedDoubleArray(capacity)); |
ElementsAccessor* accessor = array->GetElementsAccessor(); |
accessor->CopyElements( |