aboutsummaryrefslogtreecommitdiff
path: root/js/commonjs/export_asserts.js
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-02-16 15:29:49 -0800
committerJosh Haberman <jhaberman@gmail.com>2016-02-18 10:30:21 -0800
commit7726cd207c66f2595f647e79c5c2c499eed7f8db (patch)
tree64dd6710fd49c0eaae16325382661ff1ad720ff5 /js/commonjs/export_asserts.js
parent5195b7f296724cde9a646b76603ef81cd41a22c2 (diff)
downloadprotobuf-7726cd207c66f2595f647e79c5c2c499eed7f8db.tar.gz
protobuf-7726cd207c66f2595f647e79c5c2c499eed7f8db.tar.bz2
protobuf-7726cd207c66f2595f647e79c5c2c499eed7f8db.zip
Integrate review comments.
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