| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script> |
| promise_test(t => { |
| const ws = new WritableStream(); |
| const abortPromise = ws.abort(); |
| // Call getWriter() with restricted stack space in order to cause a "stack |
| // space exceeded" exception to happen inside the implementation. It is called |
| // with progressively more stack space until something interesting happens. |
| function goDeeper() { |
| try { |
| goDeeper(); |
| ws.getWriter(); |
| } catch (e) {} |
| } |
| goDeeper(); |
| return Promise.resolve(); |
| }, 'this test should not crash'); |
| </script> |