Named factory functions

Sultan thysultan at gmail.com
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.name === 'foo')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190203/0623b276/attachment.html>


More information about the es-discuss mailing list