Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/node_blob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void Blob::New(const FunctionCallbackInfo<Value>& args) {
return nullptr;
}
return DataQueue::CreateInMemoryEntryFromBackingStore(
store, byte_offset, byte_length);
std::move(store), byte_offset, byte_length);
}

// If the ArrayBuffer is not detachable, we will copy from it instead.
Expand All @@ -216,7 +216,7 @@ void Blob::New(const FunctionCallbackInfo<Value>& args) {
uint8_t* ptr = static_cast<uint8_t*>(buf->Data()) + byte_offset;
std::copy(ptr, ptr + byte_length, static_cast<uint8_t*>(store->Data()));
return DataQueue::CreateInMemoryEntryFromBackingStore(
store, 0, byte_length);
std::move(store), 0, byte_length);
};

// Every entry should be either an ArrayBuffer, ArrayBufferView, or Blob.
Expand Down
Loading