|
@@ -705,8 +705,7 @@ void SimpleURLLoaderWrapper::OnDataReceived(std::string_view string_piece,
|
|
|
v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
|
|
|
v8::HandleScope handle_scope(isolate);
|
|
|
auto array_buffer = v8::ArrayBuffer::New(isolate, string_piece.size());
|
|
|
- auto backing_store = array_buffer->GetBackingStore();
|
|
|
- memcpy(backing_store->Data(), string_piece.data(), string_piece.size());
|
|
|
+ memcpy(array_buffer->Data(), string_piece.data(), string_piece.size());
|
|
|
Emit("data", array_buffer,
|
|
|
base::AdaptCallbackForRepeating(std::move(resume)));
|
|
|
}
|