mozilla/sweet.js — pull request #357 by jlongster (2014-07-01 02:35:55+00:00)
Title: make suppressReadError more aggressive

Just a small tweak that makes `suppressReadError` do more of a blacklisting rather than whitelisting. There's no common error class so I can't really check if the error came from reading. This will supress all errors that aren't basic `TypeError` or `SyntaxError`. That is helpful in case someone finds a real internal parser bug, which will be thrown instead of suppressed.