You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When String#repeat is given a value with a known value (whether through inlining or directly), should run the repeat method whenever the result is smaller.
Input (with unsafe compress set to true):
exportconsta="a".repeat(4);
Terser Output:
exportconsta="a".repeat(4);
Expected output:
exportconsta="aaaa";
The text was updated successfully, but these errors were encountered:
When
String#repeat
is given a value with a known value (whether through inlining or directly), should run the repeat method whenever the result is smaller.Input (with unsafe compress set to
true
):Terser Output:
Expected output:
The text was updated successfully, but these errors were encountered: