aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/commonjs/export_asserts.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/commonjs/export_asserts.js')
-rw-r--r--js/commonjs/export_asserts.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/commonjs/export_asserts.js b/js/commonjs/export_asserts.js
index 9b823d3c..5219d120 100644
--- a/js/commonjs/export_asserts.js
+++ b/js/commonjs/export_asserts.js
@@ -30,4 +30,8 @@ for (var key in global) {
}
}
+// The COMPILED variable is set by Closure compiler to "true" when it compiles
+// JavaScript, so in practice this is equivalent to "exports.COMPILED = true".
+// This will disable some debugging functionality in debug.js. We could
+// investigate whether this can/should be enabled in CommonJS builds.
exports.COMPILED = COMPILED