From 88f0ca16fc7bb251571d5393de19b6394863249c Mon Sep 17 00:00:00 2001 From: Marly Fleitas 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); /// }