Re:Debugging Node.js in Production
by gotchange on Friday December 04, 2015 @03:14PM
(#10678833)
I think Babel converts the code to ES5 and then execute the statements and therefore the function's name is printed to the console just like what you expect from good old ES5 code.
[ Parent
| on HN ]
The most direct ES5 translation of
let func = () => {}
would be var func = function() {}
But even in that case, func.name is going to be "".