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

Function ThrowSyntaxError

test/error.cc:169–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void ThrowSyntaxError(const CallbackInfo& info) {
170 std::string message = info[0].As<String>().Utf8Value();
171
172 ReleaseAndWaitForChildProcess(info, 1);
173 throw SyntaxError::New(info.Env(), message);
174}
175#endif // NAPI_VERSION > 8
176
177Value CatchError(const CallbackInfo& info) {

Callers

nothing calls this directly

Calls 3

EnvMethod · 0.80

Tested by

no test coverage detected