Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dereference and function call operators to NanCallback #370

Merged
merged 1 commit into from
May 30, 2015

Conversation

kkoopa
Copy link
Collaborator

@kkoopa kkoopa commented May 30, 2015

As a way of addressing #284, I added a dereference operator to NanCallback as a shorthand for GetFunction. I also added a function call operator as a shorthand for Call.

Should be included in #365.

@kkoopa kkoopa added this to the 1.9 milestone May 30, 2015
@kkoopa kkoopa force-pushed the callback_operators branch from 79b9779 to c4b2ed0 Compare May 30, 2015 14:16
@bnoordhuis
Copy link
Member

LGTM, I suppose, although I question how useful that is.

@kkoopa
Copy link
Collaborator Author

kkoopa commented May 30, 2015

It's more natural. You would expect NanCallback to be a functor. Makes it easily usable in more code.

@kkoopa kkoopa merged commit c4b2ed0 into nodejs:master May 30, 2015
@kkoopa kkoopa deleted the callback_operators branch May 30, 2015 17:41
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.

2 participants