(testFct, trap, expected)
| 5 | d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js"); |
| 6 | |
| 7 | function TestStackTrace(testFct, trap, expected) { |
| 8 | assertTraps(trap, testFct); |
| 9 | try { |
| 10 | testFct(); |
| 11 | assertUnreachable(); |
| 12 | } catch(e) { |
| 13 | let regex = /at [^ ]+ \(wasm[^\[]+\[[0-9+]\]:(0x[0-9a-f]+)\)/; |
| 14 | let match = e.stack.match(regex); |
| 15 | assertEquals(expected, match[1]) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | (function CodeLocationRefCast() { |
| 20 | print(arguments.callee.name); |
no test coverage detected