(f)
| 16 | } |
| 17 | |
| 18 | async function test(f) { |
| 19 | try { |
| 20 | await f(1); |
| 21 | assertUnreachable(); |
| 22 | } catch (e) { |
| 23 | assertInstanceof(e, Error); |
| 24 | assertMatches(/Error.+at two.+at async one.+at async test/ms, e.stack); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | assertPromiseResult((async () => { |
| 29 | %PrepareFunctionForOptimization(one); |
no test coverage detected