Skip to content

Commit

Permalink
Workaround for nightly regression
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhenrymantilla committed May 11, 2022
1 parent c37f20b commit 2af6340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ffi_export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,12 @@ macro_rules! __ffi_export__ {
ret
}}

$crate::paste::item! {
/// Define the N-API wrapping function.
#[cfg(any(
$(
all(),
__hack = $node_js_arg_count,
[< __hack_ $node_js_arg_count >] = "",
)?
))]
const _: () = {
Expand Down Expand Up @@ -259,6 +260,7 @@ macro_rules! __ffi_export__ {
}
}
};
}
};

#[cfg(not(target_arch = "wasm32"))]
Expand Down

0 comments on commit 2af6340

Please sign in to comment.