Standard modules?

Allen Wirfs-Brock allen at
Tue Jan 21 08:42:52 PST 2014

On Jan 20, 2014, at 11:46 PM, Andy Wingo wrote:

> On Mon 20 Jan 2014 18:39, Brendan Eich <brendan at> writes:
>> Allen Wirfs-Brock wrote:
>>> It isn't clear that there much need for a global name for
>>> GeneratorFunction.  If you really eed to access it can always get it
>>> via:
>>>   (function *() {}).constructor
>> Does this present a hazard for CSP, which provides policy controls
>> governing Function?
> Relevant spec:
> I guess CSP needs to be updated to have similar language for
> GeneratorFunction as for Function.  As Allen mentions, though it doesn't
> have a name it is accessible.
> I just took a look at SM and V8 and it seems both of them respect CSP
> for the GeneratorFunction constructor, though both are lacking test
> cases.  Not sure how to trigger such a test case without a browser.

I would assume that the actual test would normally be done  at the level of the implementation that compiles (or executes) such code and not in the public API that exposes that capability.


More information about the es-discuss mailing list