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

Function ThrowSyntaxErrorCtor

test/error.cc:163–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void ThrowSyntaxErrorCtor(const CallbackInfo& info) {
164 Napi::Value js_range_err = info[0];
165 ReleaseAndWaitForChildProcess(info, 1);
166 throw Napi::SyntaxError(info.Env(), js_range_err);
167}
168
169void ThrowSyntaxError(const CallbackInfo& info) {
170 std::string message = info[0].As<String>().Utf8Value();

Callers

nothing calls this directly

Calls 4

SyntaxErrorClass · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected