Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <meta charset="utf-8"> | |
| 3 <title>respond-with-response-body-with-invalid-chunk</title> | |
| 4 <body></body> | |
| 5 <script> | |
| 6 fetch('body-stream-with-invalid-chunk').then(resp => { | |
| 7 const reader = resp.body.getReader(); | |
| 8 return reader.read().then( | |
| 9 () => parent.done('FAIL: read() should be rejected'), | |
| 10 () => parent.done('PASS')); | |
| 11 }).catch(e => parent.done('FAIL: ' + e)); | |
| 12 </script> | |
| OLD | NEW |