diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-12-07 13:25:40 -0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-12-08 05:25:40 +0800 |
commit | 50b6907bc332315eeb13c05bf687b990bc8dd936 (patch) | |
tree | 93bd474d16d248c595431548420d224801b6f7f4 /core/libdeno/buffer.h | |
parent | 7144bbed34ee3d867c76a88398e6d73843385b34 (diff) |
Replace deprecated GetContent with GetBackingStore (#3458)
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(); |