| 196 | } |
| 197 | |
| 198 | void CatchAndRethrowError(const CallbackInfo& info) { |
| 199 | Function thrower = info[0].As<Function>(); |
| 200 | try { |
| 201 | thrower({}); |
| 202 | } catch (Error& e) { |
| 203 | e.Set("caught", Boolean::New(info.Env(), true)); |
| 204 | throw; |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | void ThrowErrorThatEscapesScope(const CallbackInfo& info) { |
| 209 | HandleScope scope(info.Env()); |
nothing calls this directly
no test coverage detected