Skip to content

Commit

Permalink
Deprecate NanErrnoException in favor of ErrnoException
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Oct 7, 2015
1 parent 48d7b53 commit 0af1ca4
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ class TryCatch {
node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_);
}

NAN_INLINE v8::Local<v8::Value> NanErrnoException(
NAN_INLINE v8::Local<v8::Value> ErrnoException(
int errorno
, const char* syscall = NULL
, const char* message = NULL
Expand All @@ -855,6 +855,14 @@ class TryCatch {
message, path);
}

NAN_DEPRECATED NAN_INLINE v8::Local<v8::Value> NanErrnoException(
int errorno
, const char* syscall = NULL
, const char* message = NULL
, const char* path = NULL) {
return ErrnoException(errorno, syscall, message, path);
}

template<typename T>
NAN_INLINE void SetIsolateData(
v8::Isolate *isolate
Expand Down Expand Up @@ -1157,14 +1165,22 @@ widenString(std::vector<uint16_t> *ws, const uint8_t *s, int l) {
node::FatalException(const_cast<v8::TryCatch &>(try_catch.try_catch_));
}

NAN_INLINE v8::Local<v8::Value> NanErrnoException(
NAN_INLINE v8::Local<v8::Value> ErrnoException(
int errorno
, const char* syscall = NULL
, const char* message = NULL
, const char* path = NULL) {
return node::ErrnoException(errorno, syscall, message, path);
}

NAN_DEPRECATED NAN_INLINE v8::Local<v8::Value> NanErrnoException(
int errorno
, const char* syscall = NULL
, const char* message = NULL
, const char* path = NULL) {
return ErrnoException(errorno, syscall, message, path);
}


template<typename T>
NAN_INLINE void SetIsolateData(
Expand Down

0 comments on commit 0af1ca4

Please sign in to comment.