Index: src/runtime/runtime-typedarray.cc |
diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc |
index cd2c0eb9fa1a3b5ca90b85b0c949b7f383c92b25..82224bc9b3e8021d6b780e7af2343f75b9bb65c0 100644 |
--- a/src/runtime/runtime-typedarray.cc |
+++ b/src/runtime/runtime-typedarray.cc |
@@ -63,6 +63,8 @@ bool Runtime::SetupArrayBufferAllocatingData(Isolate* isolate, |
bool initialize) { |
void* data; |
CHECK(V8::ArrayBufferAllocator() != NULL); |
+ // Prevent creating array buffers when serializing. |
+ DCHECK(!isolate->serializer_enabled()); |
if (allocated_length != 0) { |
if (initialize) { |
data = V8::ArrayBufferAllocator()->Allocate(allocated_length); |