mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-17 23:11:23 +00:00
Fix order of export/gc
We might gc a table away so if we need to export it be sure to do so before we gc! Additionally remove an extraneous gc that snuck in at some point, no need to do more than one. Closes #1130
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user