Skip to content

Commit

Permalink
chore: stop using methods with deprication warnings in node 10.12.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanmar511 authored Oct 24, 2018
1 parent 230e146 commit d145406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/sampling-heap-profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ NAN_METHOD(StartSamplingHeapProfiler) {
return Nan::ThrowTypeError("First argument type must be Integer.");
}

#if NODE_MODULE_VERSION > NODE_10_0_MODULE_VERSION
#if NODE_MODULE_VERSION > NODE_8_0_MODULE_VERSION
uint64_t sample_interval = info[0].As<Integer>()->Value();
int stack_depth = info[1].As<Integer>()->Value();
#else
Expand Down
2 changes: 1 addition & 1 deletion bindings/time-profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ NAN_METHOD(StopProfiling) {
}

NAN_METHOD(SetSamplingInterval) {
#if NODE_MODULE_VERSION > NODE_10_0_MODULE_VERSION
#if NODE_MODULE_VERSION > NODE_8_0_MODULE_VERSION
int us = info[0].As<Integer>()->Value();
#else
int us = info[0].As<Integer>()->IntegerValue();
Expand Down

0 comments on commit d145406

Please sign in to comment.