it should be `throw new Error...`

without `new` the stack trace will contain an extra frame which looks confusing.