Commit b035c9a 1 parent d75c2ac commit b035c9a Copy full SHA for b035c9a
File tree 1 file changed +4
-3
lines changed
src/com/google/javascript/jscomp
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -200,9 +200,6 @@ public static void addEarlyOptimizationTranspilationPasses(
200
200
passes .maybeAdd (
201
201
getEs6RewriteDestructuring (ObjectDestructuringRewriteMode .REWRITE_ALL_OBJECT_PATTERNS ));
202
202
}
203
- if (options .needsTranspilationOf (Feature .NEW_TARGET )) {
204
- passes .maybeAdd (rewriteNewDotTarget );
205
- }
206
203
}
207
204
208
205
/**
@@ -216,6 +213,10 @@ public static void addPostNormalizationTranspilationPasses(
216
213
// TODO(b/197349249): Move passes from `addEarlyOptimizationTranspilationPasses()` to here
217
214
// until that method can be deleted as a no-op.
218
215
216
+ if (options .needsTranspilationOf (Feature .NEW_TARGET )) {
217
+ passes .maybeAdd (rewriteNewDotTarget );
218
+ }
219
+
219
220
if (options .needsTranspilationOf (Feature .ARROW_FUNCTIONS )) {
220
221
passes .maybeAdd (es6RewriteArrowFunction );
221
222
}
You can’t perform that action at this time.
0 commit comments