[Pkg-javascript-commits] [uglifyjs] 32/491: kill `opera` (#1869)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:19 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit ecf3563c45e7cbf58cc9b7528ee5804691420a60
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date:   Sat May 6 17:42:07 2017 +0800

    kill `opera` (#1869)
---
 lib/compress.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/compress.js b/lib/compress.js
index bf6a40d..63eaaca 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1097,11 +1097,10 @@ merge(Compressor.prototype, {
             statements.forEach(function(stat){
                 if (prev) {
                     if (stat instanceof AST_For) {
-                        var opera = {};
                         try {
                             prev.body.walk(new TreeWalker(function(node){
                                 if (node instanceof AST_Binary && node.operator == "in")
-                                    throw opera;
+                                    throw cons_seq;
                             }));
                             if (stat.init && !(stat.init instanceof AST_Definitions)) {
                                 stat.init = cons_seq(stat.init);
@@ -1111,7 +1110,7 @@ merge(Compressor.prototype, {
                                 ret.pop();
                             }
                         } catch(ex) {
-                            if (ex !== opera) throw ex;
+                            if (ex !== cons_seq) throw ex;
                         }
                     }
                     else if (stat instanceof AST_If) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list