const e = new Error('bad stuff happened') e.name = 'MyError'
Which popular libraries do this?
If it's just in a few places, it should be handled specifically, and use sane choices in other places.