This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
Nan 1.x 有一个函数NanHasInstance(Persistent<FunctionTemplate>&, Handle<Value>)来检查一个对象是否是一个构造函数的实例。但是,该功能在 nan 2.0 中被删除,并且没有明显的替代品。nan 是否仍以其他方式公开此功能?如果没有,是否有其他方法可以检查它是否与 Node 版本兼容?