File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class WorkerThreadData {
117
117
public:
118
118
explicit WorkerThreadData (Worker* w)
119
119
: w_(w),
120
- array_buffer_allocator_(CreateArrayBufferAllocator ()) {
120
+ array_buffer_allocator_(ArrayBufferAllocator::Create ()) {
121
121
CHECK_EQ (uv_loop_init (&loop_), 0 );
122
122
123
123
Isolate* isolate = NewIsolate (array_buffer_allocator_.get (), &loop_);
@@ -174,8 +174,7 @@ class WorkerThreadData {
174
174
private:
175
175
Worker* const w_;
176
176
uv_loop_t loop_;
177
- DeleteFnPtr<ArrayBufferAllocator, FreeArrayBufferAllocator>
178
- array_buffer_allocator_;
177
+ std::unique_ptr<ArrayBufferAllocator> array_buffer_allocator_;
179
178
DeleteFnPtr<IsolateData, FreeIsolateData> isolate_data_;
180
179
181
180
friend class Worker ;
You can’t perform that action at this time.
0 commit comments