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: #847
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
Reviewed-By: NickNaso <[email protected]>
  • Loading branch information
seishun authored Dec 7, 2020
1 parent 48e6b58 commit 4bb680d
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 4bb680d

Please sign in to comment.