Add #[wasm_bindgen(assert_no_shim)] on imported functions for testing

This should not be used outside of wasm-bindgen's test suite.
This commit is contained in:
Nick Fitzgerald
2019-07-11 15:12:48 -07:00
parent 2d0866da9a
commit bce892b625
8 changed files with 34 additions and 1 deletions

1
crates/shared/src/lib.rs Normal file → Executable file
View File

@ -44,6 +44,7 @@ macro_rules! shared_api {
shim: &'a str,
catch: bool,
variadic: bool,
assert_no_shim: bool,
method: Option<MethodData<'a>>,
structural: bool,
function: Function<'a>,