In Safari with no add-ons (and actually most other browsers), console.log
will show the object at the last state of execution, not at the state when conso
That > Object
in the console, isn't only showing the current state. It actually is deferring reading the object and it's properties until you expand it.
For example,
var test = {a: true}
console.log(test);
setTimeout(function () {
test.a = false;
console.log(test);
}, 4000);
Then expand the first call, it will be correct, if you do it before the second console.log
returns