We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9da3f0 commit dc8b57fCopy full SHA for dc8b57f
src/node_worker.cc
@@ -117,7 +117,7 @@ class WorkerThreadData {
117
public:
118
explicit WorkerThreadData(Worker* w)
119
: w_(w),
120
- array_buffer_allocator_(CreateArrayBufferAllocator()) {
+ array_buffer_allocator_(ArrayBufferAllocator::Create()) {
121
CHECK_EQ(uv_loop_init(&loop_), 0);
122
123
Isolate* isolate = NewIsolate(array_buffer_allocator_.get(), &loop_);
@@ -174,8 +174,7 @@ class WorkerThreadData {
174
private:
175
Worker* const w_;
176
uv_loop_t loop_;
177
- DeleteFnPtr<ArrayBufferAllocator, FreeArrayBufferAllocator>
178
- array_buffer_allocator_;
+ std::unique_ptr<ArrayBufferAllocator> array_buffer_allocator_;
179
DeleteFnPtr<IsolateData, FreeIsolateData> isolate_data_;
180
181
friend class Worker;
0 commit comments