| 147 | } |
| 148 | |
| 149 | void ThrowRangeError(const CallbackInfo& info) { |
| 150 | std::string message = info[0].As<String>().Utf8Value(); |
| 151 | |
| 152 | ReleaseAndWaitForChildProcess(info, 1); |
| 153 | throw RangeError::New(info.Env(), message); |
| 154 | } |
| 155 | |
| 156 | #if NAPI_VERSION > 8 |
| 157 | void ThrowSyntaxErrorCStr(const CallbackInfo& info) { |
nothing calls this directly
no test coverage detected