Re:Greppability is an underrated code metric
by svieira on Tuesday September 03, 2024 @09:00AM
(#41434536)
Yes, in great detail. https://tc39.es/ecma262/multipage/ordinary-and-exotic-object... is the specification, and for the TL;DR https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... is pretty good.
Re:Greppability is an underrated code metric
by Izkata on Tuesday September 03, 2024 @01:04PM
(#41436891)
You're probably remembering how it used to work. This is the example I remember from way back that we shouldn't use because (aside from being unnecessary and weird) this function wouldn't have a name in stack traces:
var foo = function() {};
Except nowadays it too does have the name "foo".
Is this behavior required by the standard ?