| 213 | } |
| 214 | |
| 215 | void CatchAndRethrowErrorThatEscapesScope(const CallbackInfo& info) { |
| 216 | HandleScope scope(info.Env()); |
| 217 | try { |
| 218 | ThrowErrorThatEscapesScope(info); |
| 219 | } catch (Error& e) { |
| 220 | e.Set("caught", Boolean::New(info.Env(), true)); |
| 221 | throw; |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | #else // NAPI_CPP_EXCEPTIONS |
| 226 |
nothing calls this directly
no test coverage detected