Is it possible to tell whether or not some javascript code call particular function?

I am trying to build some sort of a javascript "antivirus" that would try to catch particular function calls. So lets say I've got some random javascript file, can I check if it doesn't use function \[code\]jQuery.trim()\[/code\] (just for example sake) anywhere?It seems like pretty complicated task, plus there are \[code\]eval\[/code\] and base encodings which could transform any code to a pile of characters.Would it be possible to write something like this in PHP? Are there any libraries and tools that could help?
 
Back
Top