I have a javascript file that reads another file which may contain javascript fragments that need to be eval()-ed. The script fragments are supposed to conform to a strict s
Don't execute code you don't trust. Globals will always be accessible.
If you do trust the code, you can execute it with particular variables in it's scope as follows: