This repository was archived by the owner on Oct 15, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1990,6 +1990,7 @@ class V8_EXPORT ArrayBuffer : public Object {
19901990 virtual void * Allocate (size_t length) = 0;
19911991 virtual void * AllocateUninitialized (size_t length) = 0;
19921992 virtual void Free (void * data, size_t length) = 0;
1993+ static Allocator* NewDefaultAllocator ();
19931994 };
19941995
19951996 class V8_EXPORT Contents { // NOLINT
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ struct ArrayBufferFinalizeInfo {
4646 }
4747};
4848
49+ v8::ArrayBuffer::Allocator* v8::ArrayBuffer::Allocator::NewDefaultAllocator () {
50+ return nullptr ;
51+ }
52+
4953static void CHAKRA_CALLBACK ExternalArrayBufferFinalizeCallback (void *data) {
5054 static_cast <ArrayBufferFinalizeInfo*>(data)->Free ();
5155}
You can’t perform that action at this time.
0 commit comments