Timeline for answer to Using throw in a Javascript expression by xx yy
Current License: CC BY-SA 4.0
Post Revisions
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 25, 2021 at 23:20 | comment | added | David Moles |
The first doesn't work (Uncaught SyntaxError: Unexpected identifier), and the second doesn't do what the OP's asking for unless you (1) wrap it in braces so as not to confuse the parser and (2) add more braces to actually call the function: setting = … || (() => {throw …})()
|
|
| Nov 27, 2018 at 11:00 | review | Late answers | |||
| Nov 27, 2018 at 11:00 | |||||
| Nov 27, 2018 at 10:44 | history | answered | xx yy | CC BY-SA 4.0 |