mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-17 15:01:23 +00:00
Add codegen to make test work.
This commit is contained in:
@ -1614,7 +1614,6 @@ impl<'a> Context<'a> {
|
||||
}
|
||||
|
||||
fn global(&mut self, s: &str) {
|
||||
let s = s;
|
||||
let s = s.trim();
|
||||
|
||||
// Ensure a blank line between adjacent items, and ensure everything is
|
||||
@ -1941,6 +1940,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
|
||||
|
||||
let js = Rust2Js::new(self.cx)
|
||||
.catch(import.catch)
|
||||
.variadic(import.variadic)
|
||||
.process(descriptor.unwrap_function())?
|
||||
.finish(&target);
|
||||
self.cx.export(&import.shim, &js, None);
|
||||
|
Reference in New Issue
Block a user