notmasteryet/pdf.js — comment on commit 18db087f791032919e6237446e821bd1eff92f65
File:  line 0
By ironymark:

Funnily enough I was thinking about making a patch just like this one - you beat me to it.

The method looks OK. One nit-pick. The algorithm for unassignedUnicodeItems looks essentially the same as the case for fonts where properties.type == 'CIDFontType2'. It may be too much to make this algorithm a single function call but I would make the patch look more like the CIDFontType2 case.