<!doctype html> | |
<script src="/resources/testharness.js"></script> | |
<script src="/resources/testharnessreport.js"></script> | |
<script src="resources/stack-overflow.js"></script> | |
<script> | |
test(() => { | |
const rs = new ReadableStream(); | |
fillStackAndRun(() => new Response(rs)); | |
}, 'stack overflow in Response construction from stream should not crash the browser'); | |
</script> |