MCPcopy Create free account
hub / github.com/nodejs/node / assertTypeError

Function assertTypeError

deps/v8/test/mjsunit/wasm/errors.js:33–35  ·  view source on GitHub ↗
(bytes, imports = {}, msg)

Source from the content-addressed store, hash-verified

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

Callers 1

errors.jsFile · 0.85

Calls 1

assertInstantiateErrorFunction · 0.70

Tested by

no test coverage detected