diff options
Diffstat (limited to 'core/libdeno/buffer.h')
-rw-r--r-- | core/libdeno/buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/libdeno/buffer.h b/core/libdeno/buffer.h index 9a6e3acf7..a0e75f7be 100644 --- a/core/libdeno/buffer.h +++ b/core/libdeno/buffer.h @@ -103,7 +103,7 @@ class PinnedBuf { PinnedBuf() : data_ptr_(nullptr), data_len_(0), pin_() {} explicit PinnedBuf(v8::Local<v8::ArrayBufferView> view) { - auto buf = view->Buffer()->GetContents().Data(); + auto buf = view->Buffer()->GetBackingStore()->Data(); ArrayBufferAllocator::global().Ref(buf); data_ptr_ = reinterpret_cast<uint8_t*>(buf) + view->ByteOffset(); |