Skip to content

Commit

Permalink
src: use default parameters for UVException()
Browse files Browse the repository at this point in the history
PR-URL: #23176
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
addaleax authored and jasnell committed Oct 17, 2018
1 parent 323f543 commit 8f84613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 0 additions & 9 deletions src/exceptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,6 @@ static Local<String> StringFromPath(Isolate* isolate, const char* path) {
}


Local<Value> UVException(Isolate* isolate,
int errorno,
const char* syscall,
const char* msg,
const char* path) {
return UVException(isolate, errorno, syscall, msg, path, nullptr);
}


Local<Value> UVException(Isolate* isolate,
int errorno,
const char* syscall,
Expand Down
9 changes: 2 additions & 7 deletions src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,8 @@ NODE_EXTERN v8::Local<v8::Value> UVException(v8::Isolate* isolate,
int errorno,
const char* syscall = nullptr,
const char* message = nullptr,
const char* path = nullptr);
NODE_EXTERN v8::Local<v8::Value> UVException(v8::Isolate* isolate,
int errorno,
const char* syscall,
const char* message,
const char* path,
const char* dest);
const char* path = nullptr,
const char* dest = nullptr);

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

0 comments on commit 8f84613

Please sign in to comment.