Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 7361055

Browse files
committed
chakrashim: add dummy shim for v8::ArrayBuffer::Allocator::NewDefaultAllocator
1 parent 68c14d7 commit 7361055

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: deps/chakrashim/include/v8.h

+1
Original file line numberDiff line numberDiff 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

Diff for: deps/chakrashim/src/v8arraybuffer.cc

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ struct ArrayBufferFinalizeInfo {
4646
}
4747
};
4848

49+
v8::ArrayBuffer::Allocator* v8::ArrayBuffer::Allocator::NewDefaultAllocator() {
50+
return nullptr;
51+
}
52+
4953
static void CHAKRA_CALLBACK ExternalArrayBufferFinalizeCallback(void *data) {
5054
static_cast<ArrayBufferFinalizeInfo*>(data)->Free();
5155
}

0 commit comments

Comments
 (0)