[Pkg-javascript-commits] [uglifyjs] 172/190: Don't assume DEBUG is defined when exporting --self

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:24 UTC 2016


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

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit aa82027a1721ee7233e92ab1b9f9ced43a8f17cf
Author: Richard van Velzen <rvanvelzen at experty.com>
Date:   Mon Jun 20 08:39:46 2016 +0200

    Don't assume DEBUG is defined when exporting --self
    
    Potential fix for #1148
---
 tools/exports.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/exports.js b/tools/exports.js
index a481143..54aa23e 100644
--- a/tools/exports.js
+++ b/tools/exports.js
@@ -18,6 +18,6 @@ exports["tokenizer"] = tokenizer;
 exports["is_identifier"] = is_identifier;
 exports["SymbolDef"] = SymbolDef;
 
-if (DEBUG) {
+if (typeof DEBUG !== "undefined" && DEBUG) {
     exports["EXPECT_DIRECTIVE"] = EXPECT_DIRECTIVE;
 }

-- 
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