Bug 49453

Summary: Web Inspector: console can not shows object without prototype `console.log(Object.create(null))`
Product: WebKit Reporter: bga_ <bga.email>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, burg, bweinstein, joepeck, kangax, keishi, loislo, oliver, pfeldman, pmuellr, rik, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

bga_
Reported 2010-11-12 10:23:47 PST
topic Instead it exception occurs "[ Exception: TypeError: Cannot convert object to primitive value ]".
Attachments
kangax
Comment 1 2011-01-27 10:26:20 PST
Note that this also happens with `console.log({ __proto__: null })` of course (since inspected object doesn't have [[Prototype]]). I wonder if it would make sense to differentiate between "regular" Object objects and objects with null'd [[Prototype]], when displaying in console.
kangax
Comment 2 2013-12-10 01:54:06 PST
This no longer happens. Should be closed.
Note You need to log in before you can comment on or make changes to this bug.