From c7d54180ff0ef742445ed39ba20bd66aae815c96 Mon Sep 17 00:00:00 2001 From: Arnaud Botella 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 b2dce0ec5..3ad095485 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); /// }