'IIFEs' may not help much.(AFAIK SM 31.0 - 38.0). IMHO it matters most what you are trying to achieve.
Some options; a - If you don't care any pollution on global object, put ';this' to the end and don't wrap. b - Similar to option a. Add a headless function to the end. By executing the script under a dummy - new context, you may also keep global from pollution. If you have to wrap it anyways, for now I don't see any solution. Is it possible to expect this also changing with SM 40.0 ? _______________________________________________ dev-tech-js-engine-internals mailing list dev-tech-js-engine-internals@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals