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

Function ThrowRangeErrorCStr

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

Source from the content-addressed store, hash-verified

130}
131
132void ThrowRangeErrorCStr(const CallbackInfo& info) {
133 std::string message = info[0].As<String>().Utf8Value();
134 ReleaseAndWaitForChildProcess(info, 1);
135 throw RangeError::New(info.Env(), message.c_str());
136}
137
138void ThrowRangeErrorCtor(const CallbackInfo& info) {
139 Napi::Value js_range_err = info[0];

Callers

nothing calls this directly

Calls 3

EnvMethod · 0.80

Tested by

no test coverage detected