Skip to content

Commit

Permalink
Support joyent/node 0.11.15
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Jan 21, 2015
1 parent a6b07ca commit fb26146
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
return val;
}

#if NODE_MODULE_VERSION >= 42 // io.js 1.0
/* io.js 1.0 */
#if NODE_MODULE_VERSION >= 42 || NODE_VERSION_AT_LEAST(0, 11, 15)
NAN_INLINE
void NanSetCounterFunction(v8::CounterLookupCallback cb) {
v8::Isolate::GetCurrent()->SetCounterFunction(cb);
Expand Down

0 comments on commit fb26146

Please sign in to comment.