mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 07:32:52 +00:00
20 lines
487 B
HTML
20 lines
487 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
const writableStream = new WritableStream({
|
|
close() {
|
|
println("Writer has been closed.");
|
|
}
|
|
}
|
|
);
|
|
const stream = new ReadableStream({
|
|
pull(controller) {
|
|
controller.close();
|
|
}
|
|
});
|
|
|
|
stream.pipeTo(writableStream).then(() => {
|
|
done();
|
|
});
|
|
});
|
|
</script>
|