(bytes, msg)
| 11 | } |
| 12 | |
| 13 | function assertCompileError(bytes, msg) { |
| 14 | assertThrows( |
| 15 | () => new WebAssembly.Module(bytes), WebAssembly.CompileError, |
| 16 | 'WebAssembly.Module(): ' + msg); |
| 17 | assertThrowsAsync( |
| 18 | WebAssembly.compile(bytes), WebAssembly.CompileError, |
| 19 | 'WebAssembly.compile(): ' + msg); |
| 20 | } |
| 21 | |
| 22 | function assertInstantiateError(error, bytes, imports = {}, msg) { |
| 23 | assertThrows( |
no test coverage detected