blob: 2ce8d334391d2ef6a105bb0a185b47ecd326fccc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// This test fails if there is an unhandled promise rejection
var stream = new ReadableStream({
pull() {
return Promise.reject("foobar");
},
});
var response = new Response(stream);
var text = response.text().then(
() => {},
() => {}
);
|