From 50b6907bc332315eeb13c05bf687b990bc8dd936 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Sat, 7 Dec 2019 13:25:40 -0800 Subject: Replace deprecated GetContent with GetBackingStore (#3458) --- core/libdeno/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/libdeno/buffer.h') 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 view) { - auto buf = view->Buffer()->GetContents().Data(); + auto buf = view->Buffer()->GetBackingStore()->Data(); ArrayBufferAllocator::global().Ref(buf); data_ptr_ = reinterpret_cast(buf) + view->ByteOffset(); -- cgit v1.2.3