diff options
author | Andreu Botella <abb@randomunok.com> | 2021-10-28 13:32:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 07:32:58 +1100 |
commit | 507ab50e0f33f0b4264c68179055ad8a7dc60320 (patch) | |
tree | 19c3b2f23ddbe52e7e34ed23d0079b4edc8dc671 /ext/webidl/00_webidl.js | |
parent | 117d9d2087479b1d85a6f7eeba5b8971a4d0c6ff (diff) |
perf(encoding): avoid copying the input data in `TextDecoder` (#12573)
The implementation of `TextDecoder` had a bug where it was copying the
input data in every case. This change removes that copy in
non-`SharedArrayBuffer` cases.
Since passing a shared buffer source to Rust would fail, this copy of
the input data was making `TextDecoder` work in cases where the input
is shared. In order to avoid a breaking change, the copy is retained in
those cases.
Diffstat (limited to 'ext/webidl/00_webidl.js')
0 files changed, 0 insertions, 0 deletions