News for hackers. Stuff that matters.
Re:How necessary are var, let, and const? by egeozcan on Monday June 01, 2015 @04:54PM (#9642083)
It's an implementation error. In Firefox, it correctly throws:

> ReferenceError: can't access lexical declaration `a' before initialization

Re:How necessary are var, let, and const? by titzer on Tuesday June 02, 2015 @04:51AM (#9644653)
No, legacy const is not spec'd by ES5. It behaves differently in FireFox and V8 because it was added at different times with different semantics in the live range hole case. In strict mode, it will throw on V8 as well.