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

@ -23,4 +23,4 @@ wasm-bindgen-anyref-xform = { path = '../anyref-xform', version = '=0.2.48' }
wasm-bindgen-shared = { path = "../shared", version = '=0.2.48' }
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.48' }
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.48' }
wasm-webidl-bindings = "0.1.0"
wasm-webidl-bindings = "0.1.1"

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,
);
}