deno
74a93fdf - fix(webidl): Don't throw when converting a detached buffer source (#12585)

Commit
5 years ago
fix(webidl): Don't throw when converting a detached buffer source (#12585) 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.
Author
Andreu Botella
Parents
Loading