Skip to content

Commit 8f84613

Browse files
addaleaxjasnell
authored andcommitted
src: use default parameters for UVException()
PR-URL: #23176 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 323f543 commit 8f84613

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

src/exceptions.cc

-9
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@ static Local<String> StringFromPath(Isolate* isolate, const char* path) {
8484
}
8585

8686

87-
Local<Value> UVException(Isolate* isolate,
88-
int errorno,
89-
const char* syscall,
90-
const char* msg,
91-
const char* path) {
92-
return UVException(isolate, errorno, syscall, msg, path, nullptr);
93-
}
94-
95-
9687
Local<Value> UVException(Isolate* isolate,
9788
int errorno,
9889
const char* syscall,

src/node.h

+2-7
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,8 @@ NODE_EXTERN v8::Local<v8::Value> UVException(v8::Isolate* isolate,
118118
int errorno,
119119
const char* syscall = nullptr,
120120
const char* message = nullptr,
121-
const char* path = nullptr);
122-
NODE_EXTERN v8::Local<v8::Value> UVException(v8::Isolate* isolate,
123-
int errorno,
124-
const char* syscall,
125-
const char* message,
126-
const char* path,
127-
const char* dest);
121+
const char* path = nullptr,
122+
const char* dest = nullptr);
128123

129124
NODE_DEPRECATED("Use ErrnoException(isolate, ...)",
130125
inline v8::Local<v8::Value> ErrnoException(

0 commit comments

Comments
 (0)