diff --git a/nan_callbacks.h b/nan_callbacks.h index 2eb76fc0..c3b1e9cd 100644 --- a/nan_callbacks.h +++ b/nan_callbacks.h @@ -21,8 +21,8 @@ namespace Intercepted { }; #else namespace Intercepted { - inline void No() {} - inline void Yes() {} + inline void No() {} + inline void Yes() {} }; #endif diff --git a/nan_callbacks_12_inl.h b/nan_callbacks_12_inl.h index ff3b654d..ec59d48c 100644 --- a/nan_callbacks_12_inl.h +++ b/nan_callbacks_12_inl.h @@ -106,6 +106,7 @@ class FunctionCallbackInfo { } #if NODE_MAJOR_VERSION < 10 + NAN_DEPRECATED inline v8::Local Callee() const { return info_.Callee(); } diff --git a/test/js/methodswithdata-test.js b/test/js/methodswithdata-test.js index dec024a3..5b4b8d39 100644 --- a/test/js/methodswithdata-test.js +++ b/test/js/methodswithdata-test.js @@ -12,8 +12,8 @@ const test = require('tap').test const nodeVersion = parseInt(process.versions.node.split('.')[0]); test('SetMethod with data', function (t) { - t.plan(1); - t.ok(bindings.testWithData()); + t.plan(1); + t.ok(bindings.testWithData()); }); test('accessors with data', function (t) {