| 57 | } |
| 58 | |
| 59 | void ThrowApiError(const CallbackInfo& info) { |
| 60 | // Attempting to call an empty function value will throw an API error. |
| 61 | Function(info.Env(), nullptr).Call(std::initializer_list<napi_value>{}); |
| 62 | } |
| 63 | |
| 64 | void LastExceptionErrorCode(const CallbackInfo& info) { |
| 65 | // Previously, `napi_extended_error_info.error_code` got reset to `napi_ok` in |