summaryrefslogtreecommitdiff
path: root/src/node_worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r--src/node_worker.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index b9143eca7a..c1a1123ef1 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -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_);
@@ -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;