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

Method FunctionTest

test/objectwrap_function.cc:7–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5class FunctionTest : public Napi::ObjectWrap<FunctionTest> {
6 public:
7 FunctionTest(const Napi::CallbackInfo& info)
8 : Napi::ObjectWrap<FunctionTest>(info) {}
9
10 static Napi::Value OnCalledAsFunction(const Napi::CallbackInfo& info) {
11 // If called with a "true" argument, throw an exeption to test the handling.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected