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

Function checkSuccessfulInstantiation

deps/v8/test/mjsunit/wasm/ffi-error.js:22–29  ·  view source on GitHub ↗
(builder, ffi, handler)

Source from the content-addressed store, hash-verified

20}
21
22function checkSuccessfulInstantiation(builder, ffi, handler) {
23 // Test synchronous instantiation.
24 const instance = builder.instantiate(ffi);
25 if (handler) handler(instance);
26
27 // Test asynchronous instantiation.
28 assertPromiseResult(builder.asyncInstantiate(ffi), handler);
29}
30
31function checkFailingInstantiation(
32 builder, ffi, error, message, prepend_context = true) {

Callers 1

ffi-error.jsFile · 0.85

Calls 3

handlerFunction · 0.50
instantiateMethod · 0.45
asyncInstantiateMethod · 0.45

Tested by

no test coverage detected