| 102 | #ifdef NAPI_CPP_EXCEPTIONS |
| 103 | |
| 104 | void ThrowJSError(const CallbackInfo& info) { |
| 105 | std::string message = info[0].As<String>().Utf8Value(); |
| 106 | |
| 107 | ReleaseAndWaitForChildProcess(info, 1); |
| 108 | throw Error::New(info.Env(), message); |
| 109 | } |
| 110 | |
| 111 | void ThrowTypeErrorCtor(const CallbackInfo& info) { |
| 112 | Napi::Value js_type_error = info[0]; |
nothing calls this directly
no test coverage detected