r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

1

u/El_Impresionante Mar 21 '24

Correct! Even exceptions should be handled by this same technique and the exception message should be used as a representation for the passing the "value" of it.

new RegExp(sdfsd) should return /[sdfsd is not defined]/