mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-29 22:42:52 +00:00
22 lines
530 B
HTML
22 lines
530 B
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>
|