mozilla/pdf.js — pull request #1457 by gigaherz (2012-03-30 21:20:17+00:00)
Title: Fixes to allow compiling with Closure Compiler

The used the reserved keywords 'char', 'byte' and 'private' as variable/field names.
Replaced them with 'character', 'octet' and 'privateData' respectively.

Compiling requires setting the language to ES5.

The .cmd script I wrote to try it:

```
@echo off
echo Compiling pdf.js into pdf.out.js...
java -jar compiler.jar --language_in ECMASCRIPT5 pdf.js 1> pdf.out.js 2> err.log
IF ERRORLEVEL 1 (
echo Errors found! See err.log for more info.
pause
)
IF NOT ERRORLEVEL 1 (
echo All done.
)
```