Skip to content

Commit

Permalink
Merge pull request #1145 from alexcrichton/less-gc
Browse files Browse the repository at this point in the history
Fix order of export/gc
  • Loading branch information
alexcrichton committed Jan 4, 2019
2 parents bea4dfc + b4f1728 commit 1758c8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
}
Expand Down

0 comments on commit 1758c8d

Please sign in to comment.