Upgrade to latest Closure Compiler

This commit is contained in:
Jos van den Oever
2019-02-08 03:05:25 +01:00
committed by Tobias Hintze
parent 88bd135f8b
commit 8f0cd82b89
4 changed files with 26 additions and 6 deletions
+3 -3
View File
@@ -96,13 +96,13 @@ MESSAGE ( STATUS "external downloads will be stored/expected in: ${EXTERNALS_DOW
ExternalProject_Add(
ClosureCompiler
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL "http://dl.google.com/closure-compiler/compiler-20160713.tar.gz"
URL_MD5 5e29d367d8310d568ada6b8df1260bab
URL "http://dl.google.com/closure-compiler/compiler-20160911.tar.gz"
URL_MD5 7e85253436e492aa580ce3c3b8f585e7
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
set(CLOSURE_JAR ${CMAKE_BINARY_DIR}/ClosureCompiler-prefix/src/ClosureCompiler/closure-compiler-v20160713.jar)
set(CLOSURE_JAR ${CMAKE_BINARY_DIR}/ClosureCompiler-prefix/src/ClosureCompiler/closure-compiler-v20160911.jar)
# Rhino
ExternalProject_Add(
+7 -2
View File
@@ -99,6 +99,11 @@ add_custom_target(webodf.css.js-target DEPENDS webodf.css.js)
# Windows has a command-line limit of around 8,000 chars, so files to be compiled are supplied to CC using the --flagfile
# option to help keep the length of the compilation command as small as possible.
SET(CLOSURE_ERROR_OPTION_LIST
"--language_in ECMASCRIPT3"
"--language_out ECMASCRIPT3"
"--use_types_for_optimization"
# "--new_type_inf"
"--hide_warnings_for=synthetic"
"--jscomp_error accessControls"
"--jscomp_error ambiguousFunctionDecl"
"--jscomp_error checkEventfulObjectDisposal"
@@ -122,11 +127,11 @@ SET(CLOSURE_ERROR_OPTION_LIST
"--jscomp_error missingGetCssName"
"--jscomp_error missingProperties"
"--jscomp_error missingProvide"
"--jscomp_off missingRequire"
"--jscomp_off missingRequire"
"--jscomp_error missingReturn"
"--jscomp_error msgDescriptions"
"--jscomp_error newCheckTypes"
"--jscomp_off nonStandardJsDocs"
"--jscomp_off nonStandardJsDocs"
"--jscomp_error strictModuleDepCheck"
"--jscomp_error suspiciousCode"
"--jscomp_error typeInvalidation"
+2 -1
View File
@@ -159,7 +159,8 @@ odf.OdfContainerTests = function OdfContainerTests(runner) {
* correctly.
*/
function checkMimeType(t, path, callback) {
runtime.readFile(path, "binary", function (err, bytes) {
runtime.readFile(path, "binary", function (err, bytes_array) {
var bytes = /**@type{!Uint8Array}*/(bytes_array);
t.err = err;
r.shouldBeNull(t, "t.err");
t.mimetype = runtime.byteArrayToString(bytes.subarray(30, 73), "utf8");
+14
View File
@@ -202,6 +202,20 @@ function readFile(path, encoding) {"use strict"; }
* @return {undefined}
*/
function quit(exitCode) {"use strict"; }
/**
* @typedef {!Object}
*/
Packages.java;
/**
* @typedef {!Object}
*/
Packages.java.io;
/**
* @constructor
* @extends Packages.java.io.Reader
* @param {!string} path
*/
Packages.java.io.FileReader = function (path) {"use strict"; };
/**
* @typedef {!Object}
*/