If you execute this code:
var foo = {bar: 'baz'};
window.console.log(foo);
foo.bar = 'bla';
The console shows this after expanding the object:
(when logging objects and arrays, it's not the run-time value that's recorded)
This bug was documented over a year ago:
http://code.google.com/p/chromium/issues/detail?id=50316
Is there a workaround for logging objects in Chrome?
See Question&Answers more detail:os