News for hackers. Stuff that matters.
Re:Debugging Node.js in Production by gotchange on Friday December 04, 2015 @01:37PM (#10678134)
Have you tried it with a « var » instead as Chrome imposes certain restrictions on the new ES6 keywords?

I also checked the online Babel REPL and verified that it works fine.

Re:Debugging Node.js in Production by spamizbad on Friday December 04, 2015 @02:53PM (#10678673)
var results in the same behavior in chrome (empty string for a function name)

It looks like babel does this little nicety for stack-trace readability.

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.
Re:Debugging Node.js in Production by spamizbad on Friday December 04, 2015 @03:46PM (#10679017)
The most direct ES5 translation of

    let func = () => {}
would be

  var func = function() {}
But even in that case, func.name is going to be "".
Re:Debugging Node.js in Production by gotchange on Friday December 04, 2015 @04:21PM (#10679221)

    var func = function func() {};
That's what the Babel REPL spits when you input the « let » statement.