-
Notifications
You must be signed in to change notification settings - Fork 465
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
Make IsObject() allow functions? #207
Comments
I agree, it seems like a bug. |
I agree as well. IsObject() should return true for a function. |
Hey, sounds good to me. |
As discussed in the issue[1], IsObject() should return true for a function. [1] nodejs#207
As discussed in the issue[1], IsObject() should return true for a function. [1] #207 PR-URL: #217 Reviewed-By: Anna Henningsen <[email protected]>
This has been fixed a while ago, the PR author just didn’t add a |
As discussed in the issue[1], IsObject() should return true for a function. [1] nodejs/node-addon-api#207 PR-URL: nodejs/node-addon-api#217 Reviewed-By: Anna Henningsen <[email protected]>
As discussed in the issue[1], IsObject() should return true for a function. [1] nodejs/node-addon-api#207 PR-URL: nodejs/node-addon-api#217 Reviewed-By: Anna Henningsen <[email protected]>
As discussed in the issue[1], IsObject() should return true for a function. [1] nodejs/node-addon-api#207 PR-URL: nodejs/node-addon-api#217 Reviewed-By: Anna Henningsen <[email protected]>
As discussed in the issue[1], IsObject() should return true for a function. [1] nodejs/node-addon-api#207 PR-URL: nodejs/node-addon-api#217 Reviewed-By: Anna Henningsen <[email protected]>
Hi everyone!
I’ve just received my first PR from somebody else on a N-API project 🎉 node-ffi-napi/weak-napi#3
I’m wondering whether it makes sense to change
IsObject()
in the wrapper so thatnapi_function
is also allowed, because functions are objects in the JS sense and any N-API operation that expects an object should also work on a function. What do you think?The text was updated successfully, but these errors were encountered: