New issue
Advanced search Search tips

Issue 624341 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

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
 
test.html
384 bytes View Download
Components: -Blink Platform>DevTools
Owner: l...@chromium.org
Status: WontFix (was: Unconfirmed)
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