fix(napi): compile issue without compat mode
This commit is contained in:
parent
fa0fe87448
commit
87d1821e73
2 changed files with 6 additions and 3 deletions
crates/napi/src/bindgen_runtime
|
@ -88,8 +88,11 @@ unsafe impl<K, V> Sync for PersistedSingleThreadHashMap<K, V> {}
|
|||
lazy_static! {
|
||||
static ref MODULE_REGISTER_CALLBACK: ModuleRegisterCallback = Default::default();
|
||||
static ref MODULE_CLASS_PROPERTIES: ModuleClassProperty = Default::default();
|
||||
// compatibility for #[module_exports]
|
||||
#[cfg(feature = "compat-mode")]
|
||||
}
|
||||
|
||||
#[cfg(feature = "compat-mode")]
|
||||
// compatibility for #[module_exports]
|
||||
lazy_static! {
|
||||
static ref MODULE_EXPORTS: PersistedSingleThreadVec<ModuleExportsCallback> = Default::default();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue