(buffer, msg)
| 10 | } |
| 11 | |
| 12 | function assertCompileError(buffer, msg) { |
| 13 | if (typeof msg == 'string') { |
| 14 | msg = 'WebAssembly.compile(): ' + msg; |
| 15 | } else { |
| 16 | assertInstanceof(msg, RegExp); |
| 17 | } |
| 18 | return assertThrowsAsync( |
| 19 | WebAssembly.compile(buffer), WebAssembly.CompileError, msg); |
| 20 | } |
| 21 | |
| 22 | assertPromiseResult(async function basicCompile() { |
| 23 | let ok_buffer = (() => { |
no test coverage detected