Closed fstrube closed 2 years ago
@devongovett
After a bit of digging, the breaking change occurred in 1.9.0 because the build was switched from Babel to Parcel. The ReferenceError is due to a situation that arises when using let
declarations inside a switch
statement (see the MDN reference for let declarations).
In 1.8.1 and earlier, Babel transpiled let
declarations to var
declarations, so a ReferenceError was not thrown. But now, with Parcel building the code, the let
declarations are left intact, thus the introduction of the ReferenceError.
I've submitted a fix in PR #286
Version 1.9.0-2.0.2 introduced a regression in the
parse()
function. I'm getting the following error and stack trace with the attached OTF font. It works fine in 1.8.1.KeplerStd-Bold.otf.zip
Use the following repo to reproduce: https://github.com/fstrube/fontkit-test