Skip to content

Commit

Permalink
Change order
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 22, 2020
1 parent da7267b commit 4a64249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ecmascript/transforms/src/compat/es2015.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ pub fn es2015(global_mark: Mark, c: Config) -> impl Fold {
spread(c.spread),
function_name(),
exprs(),
// Should come before parameters
// See: https://github.com/swc-project/swc/issues/1036
regenerator(global_mark),
parameters(),
for_of(c.for_of),
computed_properties(),
destructuring(c.destructuring),
regenerator(global_mark),
block_scoping(),
)
}
Expand Down

0 comments on commit 4a64249

Please sign in to comment.