mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 00:49:46 +00:00
18 lines
548 B
HTML
18 lines
548 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(async done => {
|
|
fetch("./../basic.html", { mode: "no-cors" })
|
|
.then(response => {
|
|
const clonedResponse = response.clone();
|
|
return clonedResponse.body;
|
|
})
|
|
.then(body => {
|
|
const reader = body.getReader();
|
|
reader.read();
|
|
|
|
println("Was able to create a reader from a cloned Fetch response!");
|
|
done();
|
|
});
|
|
});
|
|
</script>
|