One for the webby types:
I have this inside some (client side) Javascript on a web page that hosts a flash movie as a way for the movie to call generic Javascript commands:
Does anybody know of any circumstance where eval might not be allowed? And does anybody know if the evaluated code can be relied on to be called from the same thread - i.e. has finised by the time eval exits?
This is one of those third hand "sometimes it doesn't work" type problems so I'm just looking for anything dubious.
Ta.
I have this inside some (client side) Javascript on a web page that hosts a flash movie as a way for the movie to call generic Javascript commands:
Code:
function JSFunction(jsf) { eval(jsf); }
This is one of those third hand "sometimes it doesn't work" type problems so I'm just looking for anything dubious.
Ta.
Comment