summaryrefslogtreecommitdiffstats
path: root/dom/streams/test/xpcshell/bug-1773237.js
blob: 0d0107fe85131ede1a414a0d0c97e9707c80ae06 (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(
  () => {},
  e => {}
);