MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / ThrowRangeError

Function ThrowRangeError

test/error.cc:149–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void ThrowRangeError(const CallbackInfo& info) {
150 std::string message = info[0].As<String>().Utf8Value();
151
152 ReleaseAndWaitForChildProcess(info, 1);
153 throw RangeError::New(info.Env(), message);
154}
155
156#if NAPI_VERSION > 8
157void ThrowSyntaxErrorCStr(const CallbackInfo& info) {

Callers

nothing calls this directly

Calls 3

EnvMethod · 0.80

Tested by

no test coverage detected