while we're busting popular JS myths... "let doesn't hoist". False. var x = 2; { console.log(x); let x = 3; } That code throws a TDZ error because the `x` in `let x` was in fact hoisted to the { } scope; it's just uninitialized. If no hoisting, would print `2`.
It sounded like @getify already did (https://twitter.com/getify/status/1101858448482787328 …) but I couldn’t find it… So filed https://bugs.chromium.org/p/v8/issues/detail?id=8938 ….
-
-
We only just "improved" it to that message a month ago!. https://chromium-review.googlesource.com/c/v8/v8/+/1441151 … . I do like the TypeScript one though (full disclaimer - I worked on TS before, so I may be biased
). -
cool hadn't seen that yet
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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.