Files
tubestation/dom/streams/test/xpcshell/bug-1773237.js

12 lines
249 B
JavaScript

// 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(
() => {},
() => {}
);