diff options
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r-- | src/node_zlib.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc index fdcf685caf2..739e36d6991 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -590,7 +590,8 @@ class ZlibStream : public CompressionStream<ZlibContext> { CHECK(args[4]->IsUint32Array()); Local<Uint32Array> array = args[4].As<Uint32Array>(); Local<ArrayBuffer> ab = array->Buffer(); - uint32_t* write_result = static_cast<uint32_t*>(ab->GetContents().Data()); + uint32_t* write_result = static_cast<uint32_t*>( + ab->GetBackingStore()->Data()); CHECK(args[5]->IsFunction()); Local<Function> write_js_callback = args[5].As<Function>(); |