Skip to content

Commit

Permalink
src: use ArrayBufferAllocator::Create in node_worker.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Apr 16, 2019
1 parent f85ef97 commit f0333bd
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit f0333bd

Please sign in to comment.