aboutsummaryrefslogtreecommitdiff
path: root/js/commonjs/export_asserts.js
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-02-04 14:58:45 -0800
committerJosh Haberman <jhaberman@gmail.com>2016-02-18 10:30:21 -0800
commitd6a186a8f18c1b14979e0244c0434b5b89c0f8a9 (patch)
tree9dbeae7f2bc3b075369961a08e7109a72259916a /js/commonjs/export_asserts.js
parent9e60036c1b1db947d29cbaaa668aeae19e7d2068 (diff)
downloadprotobuf-d6a186a8f18c1b14979e0244c0434b5b89c0f8a9.tar.gz
protobuf-d6a186a8f18c1b14979e0244c0434b5b89c0f8a9.tar.bz2
protobuf-d6a186a8f18c1b14979e0244c0434b5b89c0f8a9.zip
Added some documentation in comments.
Diffstat (limited to 'js/commonjs/export_asserts.js')
-rw-r--r--js/commonjs/export_asserts.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/commonjs/export_asserts.js b/js/commonjs/export_asserts.js
index 16abdd7d..9b823d3c 100644
--- a/js/commonjs/export_asserts.js
+++ b/js/commonjs/export_asserts.js
@@ -1,11 +1,17 @@
/**
- * @fileoverview Description of this file.
+ * @fileoverview Exports symbols needed only by tests.
+ *
+ * This file exports several Closure Library symbols that are only
+ * used by tests. It is used to generate a file
+ * closure_asserts_commonjs.js that is only used at testing time.
*/
goog.require('goog.testing.asserts');
var global = Function('return this')();
+// All of the closure "assert" functions are exported at the global level.
+//
// The Google Closure assert functions start with assert, eg.
// assertThrows
// assertNotThrows