Skip to content

Use Symbol.hasInstance() for napi_instanceof on V8, when available #182

@gabrielschulhof

Description

@gabrielschulhof

This can be accomplished by retaining Symbol.hasInstance() in a static Persistent at the top of node_api.cc and then calling it. If the persistent is empty, we do what we do now. The persistent is initialized from napi_module_register_cb().

Metadata

Metadata

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