aboutsummaryrefslogtreecommitdiff
path: root/tools/file_packager.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-21 15:29:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-21 15:29:57 -0700
commitd265c70f489dcb3b3716273fc35fcc817d1a426a (patch)
treeb9154aa6e0f682a412ed8f91e665e35185b2278f /tools/file_packager.py
parent65ecbe4515b5ea346a9b8079fdece61d3df6a68c (diff)
closurize file packager output
Diffstat (limited to 'tools/file_packager.py')
-rw-r--r--tools/file_packager.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py
index 7797e58c..25a920b6 100644
--- a/tools/file_packager.py
+++ b/tools/file_packager.py
@@ -97,6 +97,10 @@ for arg in sys.argv[1:]:
Compression.js_name = arg
in_compress = 0
+print '''
+(function() {
+'''
+
code = '''
function assert(check, msg) {
if (!check) throw msg + new Error().stack;
@@ -349,3 +353,7 @@ if crunch:
});
'''
+print '''
+})();
+'''
+