diff --git a/src/js_native_api_v8.cpp b/src/js_native_api_v8.cpp index 73dc7bd45e821259409ce0168d1862cd99e643cd..00cabab3eb113fbce2d975c55b656ba803295d94 100644 --- a/src/js_native_api_v8.cpp +++ b/src/js_native_api_v8.cpp @@ -227,7 +227,7 @@ static constexpr JSVM_TraceCategory DEFAULT_CATAGORIES[] = { JSVM_TRACE_VM, JSVM static inline v8::ArrayBuffer::Allocator* GetOrCreateDefaultArrayBufferAllocator() { - static std::unique defaultArrayBufferAllocator( + static std::unique_ptr defaultArrayBufferAllocator( v8::ArrayBuffer::Allocator::NewDefaultAllocator()); return defaultArrayBufferAllocator.get(); }