aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRichard van Velzen <rvanvelzen@experty.com>2016-06-20 08:39:46 +0200
committerRichard van Velzen <rvanvelzen@experty.com>2016-06-20 08:40:45 +0200
commitaa82027a1721ee7233e92ab1b9f9ced43a8f17cf (patch)
tree1a27a591e2b73247efeed87389f30fee97f0969b /tools
parent55c592dd43bc72a2be6cdfbcce05d2645eed0656 (diff)
downloadtracifyjs-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.js2
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;
}