(thunk)
| 23 | } |
| 24 | |
| 25 | function run(thunk) { |
| 26 | handler_called = false; |
| 27 | exception = null; |
| 28 | |
| 29 | var res = thunk(); |
| 30 | if (continuation) |
| 31 | continuation(res); |
| 32 | |
| 33 | assertTrue(handler_called, "listener not called for " + name); |
| 34 | assertNull(exception, name + " / " + exception); |
| 35 | } |
| 36 | |
| 37 | var fun = Function.apply(null, formals_and_body); |
| 38 | var gen = (function*(){}).constructor.apply(null, formals_and_body); |
no test coverage detected