mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Make .decode(a, {stream :true}) slightly faster in TextDecoder
This commit is contained in:
@@ -599,7 +599,7 @@ pub const TextDecoder = struct {
|
||||
};
|
||||
|
||||
if (arguments.len > 1 and arguments[1].isObject()) {
|
||||
if (arguments[1].get(globalThis, "stream")) |stream| {
|
||||
if (arguments[1].fastGet(globalThis, .stream)) |stream| {
|
||||
if (stream.coerce(bool, globalThis)) {
|
||||
return this.decodeSlice(globalThis, array_buffer.slice(), true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user