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

Function CatchAndRethrowErrorThatEscapesScope

test/error.cc:215–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void CatchAndRethrowErrorThatEscapesScope(const CallbackInfo& info) {
216 HandleScope scope(info.Env());
217 try {
218 ThrowErrorThatEscapesScope(info);
219 } catch (Error& e) {
220 e.Set("caught", Boolean::New(info.Env(), true));
221 throw;
222 }
223}
224
225#else // NAPI_CPP_EXCEPTIONS
226

Callers

nothing calls this directly

Calls 4

EnvMethod · 0.80
SetMethod · 0.80

Tested by

no test coverage detected