Named factory functions

Sultan thysultan at
Sun Feb 3 19:01:57 UTC 2019

Where there any attempts to allow factory functions the ability to assume
the name of the binding they are assigned to?

Consider the following:

function factory () { return function () {} }
var foo = factory()
console.assert( === 'foo')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list