Timeline for What is the difference between `throw new Error` and `throw someObject`?
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Jul 2, 2024 at 10:05 | history | edited | iono | CC BY-SA 4.0 |
Added reference to ECMAScript Standard - stating that both Error (function call) and new Error (Object Creation Expression) are equivalent
|
| S Jul 2, 2024 at 10:05 | history | suggested | rudresh | CC BY-SA 4.0 |
Added reference to ECMAScript Standard - stating that both Error (function call) and new Error (Object Creation Expression) are equivalent
|
| Jul 1, 2024 at 5:42 | review | Suggested edits | |||
| S Jul 2, 2024 at 10:05 | |||||
| Nov 20, 2023 at 12:10 | history | edited | iono | CC BY-SA 4.0 |
slightly clean up the suggestion for how to remove the `new` keyword. naturalise some wording. clean up example REPL output
|
| Nov 20, 2023 at 12:04 | history | edited | iono | CC BY-SA 4.0 |
slightly clean up the suggestion for how to remove the `new` keyword. naturalise some wording
|
| Apr 30, 2023 at 10:48 | history | edited | iono | CC BY-SA 4.0 |
change code example to make more literal sense and better demonstrate contextual error recovery using the thrown data
|
| Mar 3, 2023 at 16:30 | history | edited | iono | CC BY-SA 4.0 |
better introduce closing opinion
|
| Feb 19, 2023 at 7:39 | history | edited | iono | CC BY-SA 4.0 |
clearer grammer for opinion coda
|
| Feb 3, 2023 at 12:38 | history | edited | iono | CC BY-SA 4.0 |
Use clearer wording and more generic code
|
| Aug 13, 2022 at 16:40 | history | edited | iono | CC BY-SA 4.0 |
Change the "error" parameter of the try/catch to "thrownValue", to emphasise that literally any value can be thrown
|
| Aug 13, 2022 at 16:32 | history | edited | iono | CC BY-SA 4.0 |
add recommendation to subclass Error
|
| Aug 13, 2022 at 16:13 | history | edited | iono | CC BY-SA 4.0 |
add recommendation to subclass Error
|
| Aug 13, 2022 at 16:05 | history | answered | iono | CC BY-SA 4.0 |