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 that napi_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?
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_functionis 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?