Skip to content

Commit

Permalink
Revert Uglifier to 4.1.18, due to bug in Uglify 3.4.9.
Browse files Browse the repository at this point in the history
mishoo/UglifyJS#3245 documents
a bug which occurs when using compression.

There does not appear to be any way to disable this particular path through the uglifier.
  • Loading branch information
rdunlop committed Nov 1, 2018
1 parent 10e4565 commit c7bfbe3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ GEM
ttfunk (1.5.1)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.19)
uglifier (4.1.18)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.4.0)
unicorn (5.4.1)
Expand Down
6 changes: 6 additions & 0 deletions config/initializers/uglifier_restriction.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

unless Uglifier::VERSION == "4.1.18"
raise "Uglifier 4.1.19 has a bug (https://github.com/mishoo/UglifyJS2/issues/3245).
Please ensure it's fixed before advancing"
end

0 comments on commit c7bfbe3

Please sign in to comment.