Files
ladybird/Tests/LibWeb/Text/expected/Streams/ReadableStreamBYOBReader-read-non-transferable-buffer.txt
Andreas Kling b629914428 LibWeb: Make TransferArrayBuffer zero-copy
Move owned ArrayBuffer storage directly when transferring stream
buffers instead of copying the bytes before detaching the source.
WebAssembly memory continues to copy because its ArrayBuffer wraps
externally-owned storage.

Preserve the abrupt completion from DetachArrayBuffer before moving
storage so non-transferable buffers, such as WebAssembly.Memory-backed
views, still surface TypeError through stream operations instead of
aborting.

This saves ~130ms of main thread time when loading a YouTube video
on my Linux computer. :^)
2026-04-25 10:53:51 +02:00

7 lines
227 B
Plaintext

read() rejected with TypeError: true
Read buffer byteLength: 65536
enqueue() threw TypeError: true
Enqueue buffer byteLength: 65536
respondWithNewView() rejected with TypeError: true
RespondWithNewView buffer byteLength: 65536