News for hackers. Stuff that matters.
Re:Apple's SSL/TLS bug by Tloewald on Saturday February 22, 2014 @02:40PM (#7283264)
var a = 17, b = 13; c = 5;

(usually this will be across multiple lines)

...just overwrote c in a different scope. This kind of bug is common, idiomatic, baffling, and actually more likely among coders subscribing to javascript "best practices".

Re:Apple's SSL/TLS bug by raverbashing on Saturday February 22, 2014 @02:57PM (#7283340)
use strict? jshint / jslint your code?

This doesn't justify playing a guessing game and skipping semicolons just because you think you know all the rules about not using them.

Re:Apple's SSL/TLS bug by Tloewald on Saturday February 22, 2014 @03:46PM (#7283524)
jslint won't stop it if there's a variable (c in this case) in the outer scope -- it's perfectly fine code as far as jslint is concerned. And jslint encourages that declaration style (actually encourages is too weak a word).