Should the raw api napi_type_tag_object be exposed?
I use External<T> but there is no way to know if the external is of the right type, and a reinterpret_cast will cause seg fault for any javascript error passing an external for another?
I guess I can call it directly on the napi_value. I was just wondering.
Should the raw api
napi_type_tag_objectbe exposed?I use
External<T>but there is no way to know if the external is of the right type, and areinterpret_castwill cause seg fault for any javascript error passing an external for another?I guess I can call it directly on the
napi_value. I was just wondering.