Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! embedding: refactor public ArrayBufferAllocator API
  • Loading branch information
addaleax committed Mar 13, 2019
commit 30d1e83437b6db6b26345b45486361c7d9dde76e
3 changes: 2 additions & 1 deletion src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ class NODE_EXTERN ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
// that performs additional integrity checks (e.g. make sure that only memory
// that was allocated by the it is also freed by it).
// This can also be set using the --debug-arraybuffer-allocations flag.
static std::unique_ptr<ArrayBufferAllocator> Create(bool always_debug = true);
static std::unique_ptr<ArrayBufferAllocator> Create(
bool always_debug = false);

private:
virtual NodeArrayBufferAllocator* GetImpl() = 0;
Expand Down