console.log doesn't display object correctly if followed by delete
Reported by
zaj...@gmail.com,
Jun 29 2016
|
||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Steps to reproduce the problem:
var test = {};
test.foo = {};
test.foo.bar = "Lorem ipsum";
console.log(test);
delete test.foo.bar;
What is the expected behavior?
What went wrong?
Logged object doesn't have "bar" property.
Did this work before? No
Chrome version: 46.0.2490.71 Channel: n/a
OS Version:
Flash Version:
Same issue in WebKit:
https://bugs.webkit.org/show_bug.cgi?id=159257
,
Jul 7 2016
This is because we only snapshot the top level object and do a request on it's children. If we took a snapshot of everything it would cause large performance issues. In the cases where you need all data about an object at a certain time you'd need to set a breakpoint and inspect the variable while paused. Thanks for reporting! |
||
►
Sign in to add a comment |
||
Comment 1 by timloh@chromium.org
, Jul 5 2016