unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic
MIT License
342 stars 18 forks source link

Always use named functions #222

Closed pi0 closed 2 weeks ago

pi0 commented 1 month ago

Although v8 engine infers function names from variable definition (const x = function() {}, x is infered) we could use explicit function names to make debugging better.

An eslint rule might be used as well.

pi0 commented 2 weeks ago

closing as is less priority