Performance concern with let/const

Andreas Rossberg rossberg at
Tue Sep 18 04:48:39 PDT 2012

On 18 September 2012 13:41, Allen Wirfs-Brock <allen at> wrote:
> Yes but but there are fairly simple heuristics that approximate that result, for example:
>    if no function calls dominate the initialization of x then TDZ checks will never need to be made for x

Yes, except that in JS, a function call can hide behind so many
seemingly innocent operations...


More information about the es-discuss mailing list