Skip to content
Closed
Changes from all commits
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
src: use ArrayBufferAllocator::Create in node_worker.cc
Refs: #27220
  • Loading branch information
addaleax committed Apr 16, 2019
commit f0333bdef8e545f9de88b7abe8225208c86ddbad
5 changes: 2 additions & 3 deletions src/node_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class WorkerThreadData {
public:
explicit WorkerThreadData(Worker* w)
: w_(w),
array_buffer_allocator_(CreateArrayBufferAllocator()) {
array_buffer_allocator_(ArrayBufferAllocator::Create()) {
CHECK_EQ(uv_loop_init(&loop_), 0);

Isolate* isolate = NewIsolate(array_buffer_allocator_.get(), &loop_);
Expand Down Expand Up @@ -174,8 +174,7 @@ class WorkerThreadData {
private:
Worker* const w_;
uv_loop_t loop_;
DeleteFnPtr<ArrayBufferAllocator, FreeArrayBufferAllocator>
array_buffer_allocator_;
std::unique_ptr<ArrayBufferAllocator> array_buffer_allocator_;
DeleteFnPtr<IsolateData, FreeIsolateData> isolate_data_;

friend class Worker;
Expand Down