Guy Bedford (2013-11-01T15:34:37.000Z)
domenic at domenicdenicola.com (2013-11-12T17:25:53.946Z)
I suppose I am hypothesising that it might be possible to limit the invocation to the outer scope only in some CSP mode. ```js // allowed: System.define(['some-module'], ['export var q = "p";']); // not allowed: (function() { System.define(['some-module'], ['export var q = "p";']); })(); ``` In this way, your window.onload example would not be possible, and no dynamic injections would be possible in anyway that is different to running a typical script. But yes, my assumption is that such a non-standard restriction might be possible.