Why GeneratorFunction constructor isn't directly exposed to end users?
allen at wirfs-brock.com
Mon Mar 2 20:40:59 UTC 2015
On Feb 28, 2015, at 2:20 PM, Michał Wadas wrote:
> It could be either Function property or new global object...
Or an import from a standard module.
It wasn't directly exposed in ES6 was because it lacked strong use cases and we didn't want to clutter up the global namespace with something of little value. Particularly, with module imports becoming available as an alternative to new globals.
More information about the es-discuss