diff options
Diffstat (limited to 'test/addons/zlib-binding/binding.cc')
-rw-r--r-- | test/addons/zlib-binding/binding.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/addons/zlib-binding/binding.cc b/test/addons/zlib-binding/binding.cc index 0b82de211a8..abfb0615842 100644 --- a/test/addons/zlib-binding/binding.cc +++ b/test/addons/zlib-binding/binding.cc @@ -12,8 +12,8 @@ inline void CompressBytes(const v8::FunctionCallbackInfo<v8::Value>& info) { auto byte_length = view->ByteLength(); assert(view->HasBuffer()); auto buffer = view->Buffer(); - auto contents = buffer->GetContents(); - auto data = static_cast<unsigned char*>(contents.Data()) + byte_offset; + auto contents = buffer->GetBackingStore(); + auto data = static_cast<unsigned char*>(contents->Data()) + byte_offset; Bytef buf[1024]; |