Merge pull request #5141 from yurydelendik/master

Fixes lint errors
This commit is contained in:
Yury Delendik 2014-08-05 22:31:15 -05:00
commit 223f34be9d

View File

@ -359,10 +359,10 @@ var BinaryCMapReader = (function BinaryCMapReaderClosure() {
function hexToStr(a, size) {
// This code is hot. Special-case some common values to avoid creating an
// object with subarray().
if (size == 1) {
if (size === 1) {
return String.fromCharCode(a[0], a[1]);
}
if (size == 3) {
if (size === 3) {
return String.fromCharCode(a[0], a[1], a[2], a[3]);
}
return String.fromCharCode.apply(null, a.subarray(0, size + 1));