mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
22d140ffb1
In the `transform` function to `TextEncoderStream`'s internal `TransformStream`, if `chunk` is the empty string and `this.#pendingHighSurrogate` is null, then `lastCodeUnit` will be NaN. As it turns out, this does not cause a bug because the comparison to check for lone surrogates turns out to be false for NaN, but to rely on it makes the code brittle. |
||
---|---|---|
.. | ||
broadcast_channel | ||
console | ||
crypto | ||
fetch | ||
ffi | ||
http | ||
net | ||
timers | ||
tls | ||
url | ||
web | ||
webgpu | ||
webidl | ||
websocket | ||
webstorage |