Closed
Description
Hi there,
Not sure whether this has been already mentioned before (I would be surpirsed if it never was)... Wouldn't it be a good idea to name arrow functions, which is what apparently ES6 does?. Think about the benefits of this in the stacktrace. It's quite useful to have a "named" function in there, instead of an anonymous one ;-)
So, this:
const double = x => x * 2;
would be transpiled down to:
var double = function double(x) {
return x * 2;
};
Just to mention that Babel does it like that ;-)
Thanks.