aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 '''
+})();
+'''
+