Merge pull request #1367 from lightpanda-io/readable_stream_cancel_persist

persist the readable stream's cancel callback
This commit is contained in:
Karl Seguin
2026-01-14 10:20:14 +00:00
committed by GitHub

View File

@@ -80,7 +80,7 @@ pub fn init(src_: ?UnderlyingSource, strategy_: ?QueueingStrategy, page: *Page)
if (src.cancel) |callback| {
self._cancel = .{
.callback = callback,
.callback = try callback.persist(),
};
}