MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / ThrowTypeError

Function ThrowTypeError

src/util/helpers.cpp:80–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 return env.Undefined();
79}
80Napi::Value ThrowTypeError(Napi::Env env, const char* message) {
81 Napi::TypeError::New(env, message).ThrowAsJavaScriptException();
82 return env.Undefined();
83}
84Napi::Value ThrowRangeError(Napi::Env env, const char* message) {
85 Napi::RangeError::New(env, message).ThrowAsJavaScriptException();
86 return env.Undefined();

Callers 4

NODE_METHODFunction · 0.85
NODE_METHODFunction · 0.85
NODE_METHODFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected