It's pretty trivial to check if a binding never changes regardless of it being a let or const. Babel has an API for ut
-
-
I wasn’t talking about mutating the binding, rather the object the binding referenced.
-
Right. I'm saying you can easily apply an optimization that treats un-mutated let bindings as const and should.
-
You wouldn't apply that optimization in the presence of direct eval, which is static.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.