aboutsummaryrefslogtreecommitdiffstats
path: root/testing/emscripten/closurecompiler-language_in-es6.patch
blob: a1820fd3889d2e0abc6bd3a538f6cd4e72a2f731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Mon, 3 Apr 2017 19:39:00 +0200
Subject: [PATCH] Fix on newer Closure Compiler, change language_in to ES6

And also fix name of the compilation_level.

Upstream-Issue: https://github.com/kripken/emscripten/issues/5109

--- a/tools/shared.py
+++ b/tools/shared.py
@@ -2140,8 +2140,8 @@
       args = [JAVA,
               '-Xmx' + (os.environ.get('JAVA_HEAP_SIZE') or '1024m'), # if you need a larger Java heap, use this environment variable
               '-jar', CLOSURE_COMPILER,
-              '--compilation_level', 'ADVANCED_OPTIMIZATIONS',
-              '--language_in', 'ECMASCRIPT5',
+              '--compilation_level', 'ADVANCED',
+              '--language_in', 'ECMASCRIPT6',
               '--externs', CLOSURE_EXTERNS,
               #'--variable_map_output_file', filename + '.vars',
               '--js', filename, '--js_output_file', filename + '.cc.js']