I'm trying to lock down a Javascript environment. As part of this, I want to remove access to certain functions- let's say the File functions. I want them to all throw an exception when used. I can polyfill these fairly easily. I was wondering if that's sufficient- can a script gain access to the original, non-polyfilled version of the function through some method, or is it restricted to the polyfilled ones?