Debian Codegraph @

testing/web-platform/tests/streams/readable-streams/crashtests/from-cross-realm.https.html

raw
1 <html class="test-wait">
2 <meta charset="utf-8">
3 <script type="module">
4 let a = window.open()
5 try {
6 let dir = await a.navigator.storage.getDirectory()
7 let hdl = await dir.getFileHandle("7399d8cf-9ff9-494d-89eb-d3045f229c27", {"create": true})
8 let map = new Map([[]])
9 let b = ReadableStream.from(map)
10 let c = await hdl.createWritable({ })
11 await b.pipeTo(c, { }).catch(() => {
12 // Error expected as we are not piping the right form of chunk to FileHandle
13 })
14 } finally {
15 document.documentElement.classList.remove("test-wait")
16 a.close()
17 }
18 </script>