var a = new Object;
var b = new Object;
var c = new Object;
c[a] = a;
c[b] = b;
console.log(c[a] === a);
I tested the code above and get fa
I experimented with it a lit bit and @royhowie might be right. As you can see in this implementation I switched the order of the assignments and then c[a] == a gave a true.
var a = new Object;
var b = new Object;
var c = new Object;
//I switched the following lines of code
c[b]=b;
c[a]=a;
console.log(c[a]===a);
Output: true