mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-23 22:11:19 +03:00
Merge pull request #1145 from alexcrichton/less-gc
Fix order of export/gc
This commit is contained in:
commit
1758c8d5af
@ -457,6 +457,7 @@ impl<'a> Context<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
self.export_table();
|
||||
self.gc();
|
||||
|
||||
// Note that it's important `throw` comes last *after* we gc. The
|
||||
@ -628,9 +629,6 @@ impl<'a> Context<'a> {
|
||||
)
|
||||
};
|
||||
|
||||
self.export_table();
|
||||
self.gc();
|
||||
|
||||
while js.contains("\n\n\n") {
|
||||
js = js.replace("\n\n\n", "\n\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user