(bytes, imports = {}, msg)
| 31 | // default imports to {} so we get LinkError by default, thus allowing us to |
| 32 | // distinguish the TypeError we want to catch |
| 33 | function assertTypeError(bytes, imports = {}, msg) { |
| 34 | assertInstantiateError(TypeError, bytes, imports, msg); |
| 35 | } |
| 36 | |
| 37 | function assertLinkError(bytes, imports, msg) { |
| 38 | assertInstantiateError(WebAssembly.LinkError, bytes, imports, msg); |
no test coverage detected