| 167 | } |
| 168 | |
| 169 | void 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 | |
| 177 | Value CatchError(const CallbackInfo& info) { |
nothing calls this directly
no test coverage detected