()
| 39 | } |
| 40 | |
| 41 | function testWrapper() { |
| 42 | print('Running a().'); |
| 43 | try { |
| 44 | instance.exports.a(); |
| 45 | print('Exited normally???'); |
| 46 | error = new Error('Function should exit with Wasm trap'); |
| 47 | } catch(e) { |
| 48 | print('Exception thrown'); |
| 49 | } |
| 50 | print('Returned from wasm.'); |
| 51 | } |
| 52 | |
| 53 | Debug.setBreakOnException(); |
| 54 | Debug.setListener(onBreak); |
no test coverage detected