News for hackers. Stuff that matters.
Re:JavaScript variables: var and let and const by thewarrior on Friday March 06, 2020 @07:52PM (#22508876)
So transpiling down to ES5 doesn’t preserve semantics ?
Re:JavaScript variables: var and let and const by jakub_g on Saturday March 07, 2020 @01:18PM (#22513053)
For some features, having 100% spec compliant behavior in transpiled code would mean excruciatingly slow/bloated code, or be downright impossible. There's a reason why features are added to the language after all: to add things that are impossible or too complex to write in old version of language.

Transpilation is "best effort" and involves some tradeoffs.