From 2bbc5d60eb21cc6e0cb53c2a916d91591b4deadd Mon Sep 17 00:00:00 2001 From: Collin Green Date: Tue, 6 Jan 2015 15:53:58 -0800 Subject: [PATCH] fix (js compiler): update to ecmascript5 Update the closure compiler flags to ecmascript5 (default is 3). This fixes release builds failing from javascript that does not conform to ecmascript3 but works otherwise. --- src/build/common/jsCompiler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build/common/jsCompiler.js b/src/build/common/jsCompiler.js index d15cdbb..3157181 100644 --- a/src/build/common/jsCompiler.js +++ b/src/build/common/jsCompiler.js @@ -128,7 +128,8 @@ exports.JSCompiler = Class(function () { var closureOpts = [ '--compilation_level', 'SIMPLE_OPTIMIZATIONS', - '--jscomp_off', 'internetExplorerChecks' + '--jscomp_off', 'internetExplorerChecks', + '--language_in', 'ECMASCRIPT5' ]; this._api.jvmtools.exec({