Skip to content

Make IsObject() allow functions? #207

@addaleax

Description

@addaleax

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions