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 {
117117 public:
118118 explicit WorkerThreadData (Worker* w)
119119 : w_(w),
120- array_buffer_allocator_(CreateArrayBufferAllocator ()) {
120+ array_buffer_allocator_(ArrayBufferAllocator::Create ()) {
121121 CHECK_EQ (uv_loop_init (&loop_), 0 );
122122
123123 Isolate* isolate = NewIsolate (array_buffer_allocator_.get (), &loop_);
@@ -174,8 +174,7 @@ class WorkerThreadData {
174174 private:
175175 Worker* const w_;
176176 uv_loop_t loop_;
177- DeleteFnPtr<ArrayBufferAllocator, FreeArrayBufferAllocator>
178- array_buffer_allocator_;
177+ std::unique_ptr<ArrayBufferAllocator> array_buffer_allocator_;
179178 DeleteFnPtr<IsolateData, FreeIsolateData> isolate_data_;
180179
181180 friend class Worker ;
You can’t perform that action at this time.
0 commit comments