mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00: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();
|
self.gc();
|
||||||
|
|
||||||
// Note that it's important `throw` comes last *after* we gc. The
|
// 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") {
|
while js.contains("\n\n\n") {
|
||||||
js = js.replace("\n\n\n", "\n\n");
|
js = js.replace("\n\n\n", "\n\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user