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

Method Execute

test/async_worker.cc:132–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131 protected:
132 void Execute() override {
133 if (!_succeed) {
134 SetError("test error");
135 }
136 }
137
138 std::vector<napi_value> GetResult(Napi::Env env) override {
139 return {Boolean::New(env, _succeed),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected