Skip to content

Make CleanupHook public#1240

Closed
julianmesa-gitkraken wants to merge 3 commits intonodejs:mainfrom
julianmesa-gitkraken:cleanuphook-public
Closed

Make CleanupHook public#1240
julianmesa-gitkraken wants to merge 3 commits intonodejs:mainfrom
julianmesa-gitkraken:cleanuphook-public

Conversation

@julianmesa-gitkraken
Copy link
Copy Markdown
Contributor

@julianmesa-gitkraken julianmesa-gitkraken commented Nov 23, 2022

Make CleanupHook public.
Added default constructor to make easier store the hook in a member class var.
Also fixed a bad #endif position.

This PR fix issue 1238

Also fixed a bad #endif position
Copy link
Copy Markdown
Member

@legendecas legendecas left a comment

Choose a reason for hiding this comment

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

Overall LGTM. Thank you for working on this!

Would you mind adding a test that verifies the CleanupHook is available to be used as a class member?

@julianmesa-gitkraken
Copy link
Copy Markdown
Contributor Author

julianmesa-gitkraken commented Nov 30, 2022

Overall LGTM. Thank you for working on this!

Would you mind adding a test that verifies the CleanupHook is available to be used as a class member?

@legendecas Added a very simple test, not sure if it is enough

Copy link
Copy Markdown
Member

@legendecas legendecas left a comment

Choose a reason for hiding this comment

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

Thank you for working on this!

@mhdawson
Copy link
Copy Markdown
Member

mhdawson commented Dec 2, 2022

Seems like since the docs do identify the type which is returned it should be public so agree this makes sense.

Copy link
Copy Markdown
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

mhdawson pushed a commit that referenced this pull request Dec 2, 2022
PR-URL: #1240
Reviewed-By: Michael Dawson <midawson@redhat.com
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>

Also fixed a bad #endif position
@mhdawson
Copy link
Copy Markdown
Member

mhdawson commented Dec 2, 2022

Landed as 39267ba

@mhdawson mhdawson closed this Dec 2, 2022
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this pull request Aug 11, 2023
PR-URL: nodejs/node-addon-api#1240
Reviewed-By: Michael Dawson <midawson@redhat.com
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>

Also fixed a bad #endif position
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Class Env::CleanupHook should be public

3 participants