| 155 | |
| 156 | #if NAPI_VERSION > 8 |
| 157 | void ThrowSyntaxErrorCStr(const CallbackInfo& info) { |
| 158 | std::string message = info[0].As<String>().Utf8Value(); |
| 159 | ReleaseAndWaitForChildProcess(info, 1); |
| 160 | throw SyntaxError::New(info.Env(), message.c_str()); |
| 161 | } |
| 162 | |
| 163 | void ThrowSyntaxErrorCtor(const CallbackInfo& info) { |
| 164 | Napi::Value js_range_err = info[0]; |
nothing calls this directly
no test coverage detected