| 22:40 | <Jamie Kyle> | Q: Are SyntaxError's reserved only for early errors / parsing errors, or can it be thrown by APIs? |
| 22:40 | <jschoi> | They can be thrown by APIs; JSON.parse throws SyntaxErrors for invalid input. |
| 22:42 | <jschoi> | (parseInt should throw SyntaxError, but it returns NaN instead. https://github.com/tc39/proposal-number-fromstring would throw SyntaxErrors.) |
| 23:02 | <Jamie Kyle> | Does this seem like the right intuition? |
| 23:59 | <ljharb> | i would prefer a syntax error, since the syntax is wrong. but i think something in the web recently chose type error for something like that with URLs |