SINeWang / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

Closure compiler errors and warnings #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Replace YUI Compressor with Google Closure compiler
2. See build fail

The following cause errors and/or warnings:

in CBC.js:
while (c.pop() != 0x80) ;

The compiler wants {} instead of ;

in AES.js (twice):
mode = options && options.mode || C.mode.OFB;

The variable mode is not declared.  Prepending "var " to the lines solves this.

Original issue reported on code.google.com by pzbo...@gmail.com on 5 Mar 2011 at 1:07

GoogleCodeExporter commented 9 years ago
Fixed in revisions 298 and 299. Will be included in a v2.0.1 release.

Original comment by Jeff.Mott.OR on 7 Mar 2011 at 3:40