This is an old question, but in ES6 this ability is provided via the Function.name property. The ECMAScript 2015 Language Specification defines how this property is added to a Function instance:
9.2.11 SetFunctionName (F, name, prefix)
The abstract operation
SetFunctionNamerequires aFunctionargumentF, aStringorSymbolargumentnameand optionally aStringargument prefix. This operation adds anameproperty toFby performing the following steps: ...
Unfortunately, this hasn't yet been implemented in all major browsers: It's listed here as not supported in all IE versions, and only partially supported in all other major browsers (with Edge 13 having the best, albeit still partial, support currently).
This is an old question, but in ES6 this ability is provided via the Function.name property. The ECMAScript 2015 Language Specification defines how this property is added to a Function instance:
9.2.11 SetFunctionName (F, name, prefix)
The abstract operation
SetFunctionNamerequires aFunctionargumentF, aStringorSymbolargumentnameand optionally aStringargument prefix. This operation adds anameproperty toFby performing the following steps: ...
Unfortunately, this hasn't yet been implemented in all major browsers: It's listed here as not supported in all IE versions, and only partially supported in all other major browsers (with Edge 13 having the best, albeit still partial, support currently).
This is an old question, but in ES6 this ability is provided via the Function.name property. The ECMAScript 2015 Language Specification defines how this property is added to a Function instance:
9.2.11 SetFunctionName (F, name, prefix)
The abstract operation
SetFunctionNamerequires aFunctionargumentF, aStringorSymbolargumentnameand optionally aStringargument prefix. This operation adds anameproperty toFby performing the following steps: ...
Unfortunately, this hasn't yet been implemented in all major browsers: It's listed here as not supported in all IE versions, and only partially supported in all other major browsers (with Edge 13 having the best, albeit still partial, support currently).
This is an old question, but in ES6 this ability is provided via the Function.name property. The ECMAScript 2015 Language Specification defines how this property is added to a Function instance:
9.2.11 SetFunctionName (F, name, prefix)
The abstract operation
SetFunctionNamerequires aFunctionargumentF, aStringorSymbolargumentnameand optionally aStringargument prefix. This operation adds anameproperty toFby performing the following steps: ...
Unfortunately, this hasn't yet been implemented in all major browsers: It's listed here as not supported in all IE versions, and only partially supported in all other major browsers (with Edge 13 having the best, albeit still partial, support currently).