Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for https://github.com/mishoo/UglifyJS/issues/99

  • Loading branch information...
commit d70fb0725123d49827465bfb179ab74cccedd38f 1 parent f92b62d
@mishoo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/squeeze.lisp
View
3  src/squeeze.lisp
@@ -279,7 +279,8 @@
;; bar; (possibly throw too) we transform into return
;; cond ? foo : bar.
((and (eq (car then) (car else))
- (member (car then) '(:return :throw)))
+ (member (car then) '(:return :throw))
+ (cadr then) (cadr else))
(return (best-of ret `(,(car then) ,(conditional cond (cadr then) (cadr else))))))
;; last special case: if we have an "else" clause and
;; we're sure that the "then" block aborts (ends with
Please sign in to comment.
Something went wrong with that request. Please try again.