mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
remove the isString type check into TransformStream write
This commit is contained in:
@@ -99,11 +99,7 @@ pub fn transformWrite(self: *TransformStream, chunk: js.Value, page: *Page) !voi
|
||||
|
||||
try ls.toLocal(transform_fn).call(void, .{ chunk, self._controller });
|
||||
} else {
|
||||
// Default transform: pass through
|
||||
if (chunk.isString()) |str| {
|
||||
const slice = try str.toSlice();
|
||||
try self._readable._controller.enqueue(.{ .string = slice });
|
||||
}
|
||||
try self._readable._controller.enqueue(.{ .string = try chunk.toStringSlice() });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user