| Index: src/value-serializer.cc
|
| diff --git a/src/value-serializer.cc b/src/value-serializer.cc
|
| index 51fdf2212b4f2a5420fd22b7f98a9a8d4e7401cc..0b3ede05697cd0e2de48348651e7d09a38d3fa27 100644
|
| --- a/src/value-serializer.cc
|
| +++ b/src/value-serializer.cc
|
| @@ -554,6 +554,9 @@ Maybe<bool> ValueSerializer::WriteJSArray(Handle<JSArray> array) {
|
| break;
|
| }
|
| case FAST_DOUBLE_ELEMENTS: {
|
| + // Elements are empty_fixed_array, not a FixedDoubleArray, if the array
|
| + // is empty. No elements to encode in this case anyhow.
|
| + if (length == 0) break;
|
| Handle<FixedDoubleArray> elements(
|
| FixedDoubleArray::cast(array->elements()), isolate_);
|
| for (; i < length; i++) {
|
|
|