mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 09:22:30 +00:00
23 lines
839 B
HTML
23 lines
839 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const ts = new TransformStream();
|
|
ts.readable.cancel(new Error("error1"));
|
|
ts.writable.getWriter().closed.catch(e => {
|
|
println(`catch ${e}`);
|
|
});
|
|
|
|
const tsWithBackpressure = new TransformStream({}, undefined, { highWaterMark: 0 });
|
|
tsWithBackpressure.readable.cancel(new Error("error1"))
|
|
tsWithBackpressure.writable.getWriter().closed.catch(e => {
|
|
println(`catch ${e}`)
|
|
})
|
|
|
|
const tsWithoutBackpressure = new TransformStream({}, undefined, { highWaterMark: 1 });
|
|
tsWithoutBackpressure.readable.cancel(new Error("error1"))
|
|
tsWithoutBackpressure.writable.getWriter().closed.catch(e => {
|
|
println(`catch ${e}`)
|
|
})
|
|
});
|
|
</script>
|