summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/streams/readable-streams/tee-detached-context-crash.html
blob: 9488da72732e003721fb7e04fef317c77538f4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<body>
<script>
const i = document.createElement("iframe");
document.body.appendChild(i);

const rs = new i.contentWindow.ReadableStream();
i.remove();

// tee() on a ReadableStream from a detached iframe should not crash.
rs.tee();
</script>
</body>