aboutsummaryrefslogtreecommitdiff
path: root/js/commonjs/export_asserts.js
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@google.com>2017-02-23 11:32:16 -0800
committerAdam Cozzette <acozzette@google.com>2017-03-01 07:43:11 -0800
commit671e075c5e642627ccbd03cf71226d8d5f2ec897 (patch)
tree1ed30b82de5a9e5dcb3d852b47d5f6d75486a261 /js/commonjs/export_asserts.js
parent7339fc04c49a055ec0688cd0cb24cf7ea64f7783 (diff)
downloadprotobuf-671e075c5e642627ccbd03cf71226d8d5f2ec897.tar.gz
protobuf-671e075c5e642627ccbd03cf71226d8d5f2ec897.tar.bz2
protobuf-671e075c5e642627ccbd03cf71226d8d5f2ec897.zip
Use closurebuilder.py in favor of calcdeps.py for compiling JavaScript
There are two motivations for this: 1) calcdeps.py is deprecated and replaced by closurebuilder.py. 2) As part of this I was able to tweak things so that the Closure compiler does not attempt to examine every .js file in the tree under js/. This makes it possible to put compatibility tests and related files in a subdirectory without them getting mixed up with the main .js files we care about.
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 5219d120..ad9446c7 100644
--- a/js/commonjs/export_asserts.js
+++ b/js/commonjs/export_asserts.js
@@ -6,6 +6,10 @@
* closure_asserts_commonjs.js that is only used at testing time.
*/
+// Include a dummy provide statement so that closurebuilder.py does not skip over this
+// file.
+goog.provide('jspb.ExportAsserts');
+
goog.require('goog.testing.asserts');
var global = Function('return this')();