From 285e4ff5dc519242a795246804f5de7f9c986b9a Mon Sep 17 00:00:00 2001 From: Kenvin Davies Date: Wed, 12 Sep 2018 17:06:54 +0200 Subject: [PATCH] doc: the Napi::ObjectWrap example does not compile The current example does not compile using GCC 4.8. PR-URL: https://github.com/nodejs/node-addon-api/pull/339 Reviewed-By: Michael Dawson Reviewed-By: Nicola Del Gobbo --- napi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napi.h b/napi.h index b2dce0e..3ad0954 100644 --- a/napi.h +++ b/napi.h @@ -1407,8 +1407,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); /// }