Skip to content

Commit

Permalink
Remove weird MaybeLocal wrapping of what already is a MaybeLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Oct 21, 2015
1 parent 9f42b4c commit 23b4590
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nan_maybe_43_inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,20 @@ Maybe<bool> Equals(v8::Local<v8::Value> a, v8::Local<v8::Value>(b)) {

NAN_INLINE
MaybeLocal<v8::Object> NewInstance(v8::Local<v8::Function> h) {
return MaybeLocal<v8::Object>(h->NewInstance(GetCurrentContext()));
return h->NewInstance(GetCurrentContext());
}

NAN_INLINE
MaybeLocal<v8::Object> NewInstance(
v8::Local<v8::Function> h
, int argc
, v8::Local<v8::Value> argv[]) {
return MaybeLocal<v8::Object>(h->NewInstance(GetCurrentContext(),
argc, argv));
return h->NewInstance(GetCurrentContext(), argc, argv);
}

NAN_INLINE
MaybeLocal<v8::Object> NewInstance(v8::Local<v8::ObjectTemplate> h) {
return MaybeLocal<v8::Object>(h->NewInstance(GetCurrentContext()));
return h->NewInstance(GetCurrentContext());
}


Expand Down

0 comments on commit 23b4590

Please sign in to comment.