feat(napi): re-export ctor as module_init

This commit is contained in:
LongYinan 2021-12-03 16:31:34 +08:00
parent 77dab3e9f7
commit 53fe4d3aa5
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -183,6 +183,8 @@ pub(crate) unsafe fn log_js_value<V: AsRef<[sys::napi_value]>>(
);
}
pub use crate::bindgen_runtime::ctor as module_init;
pub mod bindgen_prelude {
#[cfg(feature = "compat-mode")]
pub use crate::bindgen_runtime::register_module_exports;