Assert that a bunch more function signatures don't require JS glue

This commit is contained in:
Nick Fitzgerald
2019-07-11 15:43:43 -07:00
parent bce892b625
commit afb33e5cf4
4 changed files with 80 additions and 10 deletions

View File

@ -2001,7 +2001,11 @@ impl<'a> Context<'a> {
if assert_no_shim {
panic!(
"imported function was annotated with `#[wasm_bindgen(assert_no_shim)]` \
but we need to generate a JS shim for it"
but we need to generate a JS shim for it:\n\n\
\timport = {:?}\n\n\
\tbinding = {:?}\n\n\
\twebidl = {:?}",
import, binding, webidl,
);
}