Standard modules?

Brendan Eich brendan at
Mon Jan 20 17:17:19 PST 2014

David Bruant wrote:
> Le 20/01/2014 18:39, Brendan Eich a écrit :
>> 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
> Do we even need (function *() {}).constructor !== Function?
> (and [[FunctionKind]] "generator" and a different @@toStringTag and...)
> What is its use case anyway? Creating a generator from source?
> What's wrong with:
>     eval("function*(x, y, z, ...yo){/*body*/}")
> (and when the source isn't trusted, use indirect eval or soon enough 
> the module loader) 

Good questions.


More information about the es-discuss mailing list