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

Commit

Permalink
chakrashim: add dummy shim for v8::ArrayBuffer::Allocator::NewDefault…
Browse files Browse the repository at this point in the history
…Allocator
  • Loading branch information
boingoing committed Dec 7, 2017
1 parent 68c14d7 commit 7361055
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,7 @@ class V8_EXPORT ArrayBuffer : public Object {
virtual void* Allocate(size_t length) = 0;
virtual void* AllocateUninitialized(size_t length) = 0;
virtual void Free(void* data, size_t length) = 0;
static Allocator* NewDefaultAllocator();
};

class V8_EXPORT Contents { // NOLINT
Expand Down
4 changes: 4 additions & 0 deletions deps/chakrashim/src/v8arraybuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ struct ArrayBufferFinalizeInfo {
}
};

v8::ArrayBuffer::Allocator* v8::ArrayBuffer::Allocator::NewDefaultAllocator() {
return nullptr;
}

static void CHAKRA_CALLBACK ExternalArrayBufferFinalizeCallback(void *data) {
static_cast<ArrayBufferFinalizeInfo*>(data)->Free();
}
Expand Down

0 comments on commit 7361055

Please sign in to comment.