mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
src: deprecate UVException() without Isolate*
This method, like all other methods which use `Isolate::GetCurrent()`,
should be avoided.
This was probably overlooked in 75adde07f9.
PR-URL: https://github.com/nodejs/node/pull/23175
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
e9a0cffbd6
commit
2da6f622dc
1 file changed
+3
-2
+3
-2
@@ -139,7 +139,8 @@ NODE_DEPRECATED("Use ErrnoException(isolate, ...)",
|
||||
path);
|
||||
})
|
||||
|
||||
inline v8::Local<v8::Value> UVException(int errorno,
|
||||
NODE_DEPRECATED("Use UVException(isolate, ...)",
|
||||
inline v8::Local<v8::Value> UVException(int errorno,
|
||||
const char* syscall = nullptr,
|
||||
const char* message = nullptr,
|
||||
const char* path = nullptr) {
|
||||
@@ -148,7 +149,7 @@ inline v8::Local<v8::Value> UVException(int errorno,
|
||||
syscall,
|
||||
message,
|
||||
path);
|
||||
}
|
||||
})
|
||||
|
||||
/*
|
||||
* These methods need to be called in a HandleScope.
|
||||
|
||||
Reference in new issue
Block a user