That seems to do it.
let func = () => {};
console.log(func.name); // func
and in stack traces: let func = () => foo();
func()
results in: Uncaught ReferenceError: foo is not defined
func @ test.js:1