Catching "eval"

Michael Day mikeday at yeslogic.com
Tue Jul 27 23:59:16 PDT 2010


Hi all,

Any comments on this code:

try
{
     throw eval;
}
catch (x)
{
     alert(x("3"));
}

It does not appear to throw an EvalError in Firefox 3.6.7, even though 
many other indirect uses of eval will.

Best regards,

Michael

-- 
Print XML with Prince!
http://www.princexml.com


More information about the es-discuss mailing list