From cd86ff94b48be7f49b266d2901ea76f7b939abf5 Mon Sep 17 00:00:00 2001 From: Arnaud Botella Date: Wed, 12 Sep 2018 17:06:54 +0200 Subject: [PATCH] Napi::ObjectWrap example does not compile The current example does not compile using GCC 4.8. --- napi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napi.h b/napi.h index 531d1c358..8356dfd19 100644 --- a/napi.h +++ b/napi.h @@ -1352,8 +1352,8 @@ namespace Napi { /// public: /// static void Initialize(Napi::Env& env, Napi::Object& target) { /// Napi::Function constructor = DefineClass(env, "Example", { - /// InstanceAccessor("value", &GetSomething, &SetSomething), - /// InstanceMethod("doSomething", &DoSomething), + /// InstanceAccessor("value", &Example::GetSomething, &Example::SetSomething), + /// InstanceMethod("doSomething", &Example::DoSomething), /// }); /// target.Set("Example", constructor); /// }