MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / DoNotCatch

Function DoNotCatch

test/error.cc:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void DoNotCatch(const CallbackInfo& info) {
55 Function thrower = info[0].As<Function>();
56 thrower({});
57}
58
59void ThrowApiError(const CallbackInfo& info) {
60 // Attempting to call an empty function value will throw an API error.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected