Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 7157cb81acf85171b94e331ad02e8404323dd0c5..943855bcedc6b85f757a14255394e707816622b8 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1539,8 +1539,8 @@ class ShellArrayBufferAllocator : public v8::ArrayBuffer::Allocator { |
class MockArrayBufferAllocator : public v8::ArrayBuffer::Allocator { |
public: |
- void* Allocate(size_t) OVERRIDE { return malloc(0); } |
- void* AllocateUninitialized(size_t length) OVERRIDE { return malloc(0); } |
+ void* Allocate(size_t) OVERRIDE { return malloc(1); } |
+ void* AllocateUninitialized(size_t length) OVERRIDE { return malloc(1); } |
void Free(void* p, size_t) OVERRIDE { free(p); } |
}; |