kriszyp.name
@kriszyp.name
The downside is that your console.error auto-prints the line number in `shouldNeverHappen` instead of in the actual code of `someFn`. Not a big downside though. This is still a good idea (and the Error's stack trace will still include all the relevant frames).
April 9, 2025 at 7:09 PM