You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serde_v8 does the right thing when constructing a ZeroCopyBuf and correctly derefs to an empty slice. Constructing that empty slice might be UB, though, but that is a more general problem than for detached buffers: see denoland/rusty_v8#711 (comment)
The text was updated successfully, but these errors were encountered:
The Web IDL conversion to `BufferSource` and similar types shouldn't
check whether the buffer is detached.
In the case of `TextDecoder`, our implementation would still throw after
the Web IDL conversions because we're creating a new `Uint8Array` from
the buffer source's buffer, which throws if it's detached. This change
also fixes this bug.
Fixesdenoland#12534.
See jsdom/webidl-conversions#29.
This is causing the failure of the following WPT tests:
encoding/encodeInto.any.html
,encoding/encodeInto.any.worker.html
: "encodeInto()
and a detached output buffer"encoding/streams/decode-utf8.any.html
,encoding/streams/decode-utf8.any.html
: "decoding a transferredUint8Array
chunk should give no output", "decoding a transferredArrayBuffer
chunk should give no output"serde_v8
does the right thing when constructing aZeroCopyBuf
and correctly derefs to an empty slice. Constructing that empty slice might be UB, though, but that is a more general problem than for detached buffers: see denoland/rusty_v8#711 (comment)The text was updated successfully, but these errors were encountered: