I have a textarea where user can enter javascript code which upon press of the button would be passed to eval().
I am having trouble catching the referenceError for cases when a user enters something like this:
var myName = Maria;
instead of
var myName = "Maria";
Thank you for you time!