Skip to content

Commit

Permalink
Move es6NormalizeShorthandProperties pass post normalization
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 636428761
  • Loading branch information
rishipal authored and Copybara-Service committed May 23, 2024
1 parent 9931d3f commit c27f4e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/com/google/javascript/jscomp/TranspilationPasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ public static void addEarlyOptimizationTranspilationPasses(
Feature.REGEXP_FLAG_U,
Feature.REGEXP_FLAG_Y));
}

// TODO(b/329447979): Merge this with another pass and delete this pass.
if (options.needsTranspilationOf(Feature.EXTENDED_OBJECT_LITERALS)) {
passes.maybeAdd(es6NormalizeShorthandProperties);
}
}

/**
Expand All @@ -204,6 +199,11 @@ public static void addPostNormalizationTranspilationPasses(
// TODO(b/197349249): Move passes from `addEarlyOptimizationTranspilationPasses()` to here
// until that method can be deleted as a no-op.

// TODO(b/329447979): Merge this with another pass and delete this pass.
if (options.needsTranspilationOf(Feature.EXTENDED_OBJECT_LITERALS)) {
passes.maybeAdd(es6NormalizeShorthandProperties);
}

if (options.needsTranspilationOf(Feature.CLASSES)) {
passes.maybeAdd(es6ConvertSuper);
}
Expand Down

0 comments on commit c27f4e5

Please sign in to comment.