Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/util-inl.h')
-rw-r--r--src/util-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util-inl.h b/src/util-inl.h
index c06a0ae84c8..d44ee09fefb 100644
--- a/src/util-inl.h
+++ b/src/util-inl.h
@@ -514,7 +514,7 @@ void ArrayBufferViewContents<T, S>::Read(v8::Local<v8::ArrayBufferView> abv) {
static_assert(sizeof(T) == 1, "Only supports one-byte data at the moment");
length_ = abv->ByteLength();
if (length_ > sizeof(stack_storage_) || abv->HasBuffer()) {
- data_ = static_cast<T*>(abv->Buffer()->GetContents().Data()) +
+ data_ = static_cast<T*>(abv->Buffer()->GetBackingStore()->Data()) +
abv->ByteOffset();
} else {
abv->CopyContents(stack_storage_, sizeof(stack_storage_));