Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index e66a2ece600bb0ab54da79510cb4a7db96f75d89..9471aa4874dd7e1c5cd2767758b0071f1945d3fa 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1635,7 +1635,13 @@ class ShellArrayBufferAllocator : public v8::ArrayBuffer::Allocator { |
virtual void* AllocateUninitialized(size_t length) { |
return malloc(length); |
} |
- virtual void Free(void* data) { free(data); } |
+ virtual void Free(void* data, size_t) { free(data); } |
+ // TODO(dslomov): Remove when v8:2823 is fixed. |
+ virtual void Free(void* data) { |
+#ifndef V8_SHARED |
+ UNREACHABLE(); |
+#endif |
+ } |
}; |