diff options
author | Richard van Velzen <rvanvelzen@experty.com> | 2016-06-20 08:39:46 +0200 |
---|---|---|
committer | Richard van Velzen <rvanvelzen@experty.com> | 2016-06-20 08:40:45 +0200 |
commit | aa82027a1721ee7233e92ab1b9f9ced43a8f17cf (patch) | |
tree | 1a27a591e2b73247efeed87389f30fee97f0969b /tools | |
parent | 55c592dd43bc72a2be6cdfbcce05d2645eed0656 (diff) | |
download | tracifyjs-aa82027a1721ee7233e92ab1b9f9ced43a8f17cf.tar.gz tracifyjs-aa82027a1721ee7233e92ab1b9f9ced43a8f17cf.zip |
Don't assume DEBUG is defined when exporting --self
Potential fix for #1148
Diffstat (limited to 'tools')
-rw-r--r-- | tools/exports.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/exports.js b/tools/exports.js index a481143c..54aa23e8 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; } |