Skip to content

Commit

Permalink
switch to a const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrobots authored and kkoopa committed Feb 20, 2018
1 parent 5328daf commit b6d756d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -1659,11 +1659,11 @@ class Callback {
};

inline MaybeLocal<v8::Value> Call(
Nan::Callback* callback
const Nan::Callback& callback
, v8::Local<v8::Object> recv
, int argc
, v8::Local<v8::Value> argv[]) {
return Call(callback->GetFunction(), recv, argc, argv);
return Call(*callback, recv, argc, argv);
}

/* abstract */ class AsyncWorker {
Expand Down

0 comments on commit b6d756d

Please sign in to comment.