Timeline for What is the difference between `throw new Error` and `throw someObject`?
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 22, 2021 at 19:50 | comment | added | Heisenberg |
And what if I'm writing code in ExpressJS for a REST API, this issue with browsers would not exist anymore. Is it nevertheless preferable to use throw new Error() ?
|
|
| Oct 22, 2012 at 17:28 | history | answered | Ed . | CC BY-SA 3.0 |