Add codegen to make test work.

This commit is contained in:
Richard Dodd
2018-08-19 13:39:16 +01:00
parent d9fd2147a0
commit a4835304eb
3 changed files with 50 additions and 7 deletions

View File

@ -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);