Skip to content

Commit

Permalink
doc: the Napi::ObjectWrap example does not compile
Browse files Browse the repository at this point in the history
The current example does not compile using GCC 4.8.

PR-URL: nodejs/node-addon-api#339
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
  • Loading branch information
John French committed Sep 18, 2018
1 parent 051d988 commit 94f9188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/// }
Expand Down

0 comments on commit 94f9188

Please sign in to comment.