mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
16 lines
510 B
HTML
16 lines
510 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
function testTransformStreamReadableStreamCancellation() {
|
|
const transformStream = new TransformStream({
|
|
cancel(reason) {
|
|
println(`TransformStream cancelled due to: ${reason}`);
|
|
return Promise.resolve();
|
|
}
|
|
});
|
|
transformStream.writable.abort('abort called by the writable side.');
|
|
}
|
|
|
|
test(() => {
|
|
testTransformStreamReadableStreamCancellation();
|
|
});
|
|
</script>
|