Skip to content

Fix example code in doc/class_property_descriptor - #587

Merged
NickNaso merged 1 commit into
nodejs:masterfrom
timrach:patch-1
Nov 13, 2019
Merged

Fix example code in doc/class_property_descriptor#587
NickNaso merged 1 commit into
nodejs:masterfrom
timrach:patch-1

Conversation

@timrach

Copy link
Copy Markdown
Contributor

Return type should be void and second function argument of type Napi::Value should be present.
See typedef:

typedefvoid (T::*InstanceSetterCallback)(const CallbackInfo& info, const Napi::Value& value);

Return type should be void and second function argument of type Napi::Value should be present.
See typedef: https://github.com/nodejs/node-addon-api/blob/295e560f5554c87d0a9dde6b73942ebd85fddb9d/napi.h#L1623
@timrachtimrach changed the title Fix return type and declaration of setter callbackFix example code in doc/class_property_descriptorNov 5, 2019

@NickNasoNickNaso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NickNasoNickNaso mentioned this pull request Nov 5, 2019
15 tasks
@KevinEady
KevinEady self-requested a review November 5, 2019 17:07

@KevinEadyKevinEady left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhdawsonmhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NickNaso
NickNaso merged commit aa79e37 into nodejs:masterNov 13, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@timrach@NickNaso@KevinEady@mhdawson