-
Notifications
You must be signed in to change notification settings - Fork 507
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
Nan::SetProperty (const char * version of Nan::Set to match Nan::SetMethod) #947
Comments
The main reason why it does not exist is because the function it papers over does not have an overload accepting a That being said, if you were to submit a PR adding this feature and it provably does not break anything, I would gladly merge it. |
Would you prefer I create a new named method in that case, like |
If it were to be added, I would prefer it to be polymorphic (through overload or template, whichever is best for this). I had a quick glance at the code and there are all these related functions with key:value like |
At a glance I think an overload should be fine... |
Perhaps I missed it, but there does not appear to be a convenience method that lets you just pass a C string for the property name to
Nan::Set
like you can do withNan::SetMethod
. Perhaps there is a reason for this, but I always end up making a macro that does this for myself and figured it was worth asking if it would be fine to add officially here, either as an overloaded version ofNan::Set
or as a newNan::SetProperty
method. If so I can make a PR.The text was updated successfully, but these errors were encountered: