Merge remote-tracking branch 'origin/master' into bump

This commit is contained in:
Alex Crichton
2018-08-27 13:38:53 -07:00
5 changed files with 39 additions and 0 deletions

View File

@ -380,6 +380,18 @@ impl<'a> Context<'a> {
))
})?;
self.bind("__wbindgen_memory", &|me| {
me.expose_add_heap_object();
let mem = me.memory();
Ok(format!(
"
function() {{
return addHeapObject({});
}}
", mem
))
})?;
self.create_memory_export();
self.unexport_unused_internal_exports();
self.gc()?;