[Question] Why are the return values ​​of the two functions different? · Issue #444 · nodejs/node-addon-examples · GitHub
Skip to content

[Question] Why are the return values ​​of the two functions different? #444

@sdg9670

Description

@sdg9670

I'm Newby, who just got into NAPI.
In the above two codes, methods are create and return the object.
I wonder why only the return value in NewInstance uses escape scope.

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