| 100 | } |
| 101 | #ifdef NODE_ADDON_API_CPP_EXCEPTIONS_ALL |
| 102 | catch (const std::exception& e) { |
| 103 | Napi::Error::New(env, e.what()).ThrowAsJavaScriptException(); |
| 104 | return nullptr; |
| 105 | } catch (...) { |
| 106 | Napi::Error::New(env, "A native exception was thrown") |
| 107 | .ThrowAsJavaScriptException(); |
| 108 | return nullptr; |
nothing calls this directly
no test coverage detected