@@ -12,22 +12,22 @@ static constexpr const char* ErrnoMessage(int32_t errorno);
1212static constexpr const char * ErrnoCode (int32_t errorno);
1313
1414/* Generates a process warning message. */
15- static inline void Warn (const Napi::Env& env, const std::string& msg) {
15+ inline void Warn (const Napi::Env& env, const std::string& msg) {
1616 auto global = env.Global ();
17- auto fn =
17+ auto emitWarning =
1818 global.Get (" process" ).As <Napi::Object>().Get (" emitWarning" ).As <Napi::Function>();
19- fn .Call ({Napi::String::New (env, msg)});
19+ emitWarning .Call ({Napi::String::New (env, msg)});
2020}
2121
22- static inline Napi::Error StatusException (
22+ inline Napi::Error StatusException (
2323 const Napi::Env& env, const std::string& msg, uint32_t status) {
2424 Napi::HandleScope const scope (env);
2525 auto exception = Napi::Error::New (env, msg);
2626 exception.Set (" status" , Napi::Number::New (env, status));
2727 return exception;
2828}
2929
30- static inline Napi::Error CodedException (
30+ inline Napi::Error CodedException (
3131 const Napi::Env& env, const std::string& msg, const std::string& code) {
3232 Napi::HandleScope const scope (env);
3333 auto exception = Napi::Error::New (env, msg);
@@ -36,7 +36,7 @@ static inline Napi::Error CodedException(
3636}
3737
3838/* This mostly duplicates node::ErrnoException, but it is not public. */
39- static inline Napi::Error ErrnoException (
39+ inline Napi::Error ErrnoException (
4040 const Napi::Env& env, int32_t error, const char * message = nullptr ) {
4141 Napi::HandleScope const scope (env);
4242 auto exception =
@@ -46,7 +46,7 @@ static inline Napi::Error ErrnoException(
4646 return exception;
4747}
4848
49- static inline Napi::Error ErrnoException (
49+ inline Napi::Error ErrnoException (
5050 const Napi::Env& env, int32_t error, const std::string& address) {
5151 auto exception = ErrnoException (env, error, nullptr );
5252 exception.Set (" address" , Napi::String::New (env, address));
0 commit comments