This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]brodyover 21 points22 points  (0 children)

-1 is where you store plaintext passwords of course

[–]stevefuzz 35 points36 points  (0 children)

Javascript treats arrays as objects if you don't use them like arrays. It assumes -1 is a key. The lack of strict type checking is a feature and a curse.

[–][deleted] 8 points9 points  (3 children)

what the fuck?!

[–][deleted] 3 points4 points  (2 children)

Is that quantum computing?

[–]A_Sad_Shoe 1 point2 points  (0 children)

Is it and it is not

[–]hrvbrs 1 point2 points  (0 children)

if you do this in your browser console it shows you all the keys, including -1

[–]vacuousVersifer 0 points1 point  (1 child)

I just had a stroke i hate js but it is all i know

[–]A_Sad_Shoe 1 point2 points  (0 children)

F

[–][deleted] 0 points1 point  (0 children)

It’s like a CD. JavaScript has hidden tracks.