Skip to content

Instantly share code, notes, and snippets.

@Mikolaj
Created September 15, 2016 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mikolaj/eced74d47edcaab1af4fdd5d431d7b88 to your computer and use it in GitHub Desktop.
Save Mikolaj/eced74d47edcaab1af4fdd5d431d7b88 to your computer and use it in GitHub Desktop.
closure compiler warnings for the deduped code
~/r/LambdaHack$ JAVA_TOOL_OPTIONS="-Xms2g -Xmx2g -XX:+UseConcMarkSweepGC" time java -jar ~/Downloads/closure-compiler.jar dist/build/LambdaHack/LambdaHack.jsexe/all.js --compilation_level=ADVANCED_OPTIMIZATIONS > ~/Downloads/all.js
Picked up JAVA_TOOL_OPTIONS: -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC
dist/build/LambdaHack/LambdaHack.jsexe/all.js:1389: WARNING - dangerous use of the global this object
this.console = {
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:1396: WARNING - dangerous use of the global this object
this.console = { log: this.print };
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:1396: WARNING - dangerous use of the global this object
this.console = { log: this.print };
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:2532: WARNING - namespace goog.math should not be redefined
goog.provide('goog.math.Long');
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:4260: WARNING - Duplicate case in a switch statement.
case 45:
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:11786: WARNING - unreachable code
return 0;
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:11792: WARNING - unreachable code
return 0;
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:12249: WARNING - variable h$runInitStatic redefined with type function (): ?, original definition at dist/build/LambdaHack/LambdaHack.jsexe/all.js:3682 with type function (): undefined
function h$runInitStatic()
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:18211: WARNING - variable h$ap_1_0 redefined with type function (?): ?, original definition at dist/build/LambdaHack/LambdaHack.jsexe/all.js:12397 with type function (): ?
function h$ap_1_0(h$RTS_577)
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:18937: WARNING - unreachable code
var h$RTS_615 = [];
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:19043: WARNING - variable h$dumpRes redefined with type function (): ?, original definition at dist/build/LambdaHack/LambdaHack.jsexe/all.js:18730 with type function (?): undefined
function h$dumpRes()
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:19293: WARNING - namespace goog.crypt should not be redefined
goog.provide('goog.crypt.Hash');
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:22172: WARNING - If this if/for/while really shouldn't have a body, use {}
for(i = l1 + l2; i > 0 && t[i] === 0; i--);
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:22189: WARNING - unreachable code
var l1 = b1.length, l2 = b2.length;
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:22326: WARNING - If this if/for/while really shouldn't have a body, use {}
while(r[r[0]] === 0 && r[0] > 0 && r[0]--);
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:23331: WARNING - unreachable code
h$ghcjsbn_assertValid_b(b, "index_b");
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:23493: WARNING - variable h$ghcjsbn_toDouble_b redefined, original definition at dist/build/LambdaHack/LambdaHack.jsexe/all.js:23341
function h$ghcjsbn_toDouble_b(nonNeg, b) {
^
dist/build/LambdaHack/LambdaHack.jsexe/all.js:24851: WARNING - variable h$listProps redefined, original definition at dist/build/LambdaHack/LambdaHack.jsexe/all.js:21132
function h$listProps(o) {
^
0 error(s), 18 warning(s)
486.39user 1.42system 6:58.95elapsed 116%CPU (0avgtext+0avgdata 9048560maxresident)k
0inputs+8856outputs (0major+183144minor)pagefaults 0swaps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment