Skip to content

Commit

Permalink
Remove misleading sentence (#847)
Browse files Browse the repository at this point in the history
The address-of operator is required for all class members.

PR-URL: nodejs/node-addon-api#847
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: NickNaso <nicoladelgobbo@gmail.com>
  • Loading branch information
kevindavies8 committed Dec 7, 2020
1 parent 6f69436 commit e5eb5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ and define it as
This way, the `Napi::ObjectWrap` constructor will be invoked after the object has been instantiated and `Napi::ObjectWrap` can use the `this` pointer to create a reference to the wrapped object.

2. Move your original constructor code into the new constructor. Delete your original constructor.
3. In your class initialization function, associate native methods in the following way. The `&` character before methods is required because they are not static methods but instance methods.
3. In your class initialization function, associate native methods in the following way.
```
Napi::FunctionReference constructor;
Expand Down

0 comments on commit e5eb5d2

Please sign in to comment.