1
Vote

Javascript check for eval() does not ignore comments

description

Comments containing eval() should be ignored.


// item A: restricted from using eval() function
// eval("window." + i.toString().toUpperCase() + " = " + n++);

//tt_op = (document.defaultView && typeof(eval("w");
// item B: restricted from using eval() function

/* for(var i in config)
{
s = "window." + i.toString().toUpperCase();
if(eval("typeof(" + s + ") == tt_u")) // item C:
restricted from using eval() function
{
eval(s + " = " + tt_aV.length);
tt_aV[tt_aV.length] = null;
}
}
*/

No files are attached

comments