ladybird/Tests/LibWeb/Text/input/Streams/ReadableStream-pipeTo-cannot-pipe-locked-stream.html

24 lines
546 B
HTML
Raw Normal View History

2025-03-18 15:28:35 -03:00
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest(done => {
const writableStream = new WritableStream(
{
write(chunk) {}
}
);
const stream = new ReadableStream({
start(controller) {},
pull(controller) {},
cancel() {},
});
stream.getReader();
stream.pipeTo(writableStream)
.catch(reason => {
println(reason);
done();
});
});
</script>