Bug 49453 - Web Inspector: console can not shows object without prototype `console.log(Object.create(null))`
Summary: Web Inspector: console can not shows object without prototype `console.log(Ob...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-12 10:23 PST by bga_
Modified: 2014-12-15 22:54 PST (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bga_ 2010-11-12 10:23:47 PST
topic

Instead it exception occurs "[ Exception: TypeError: Cannot convert object to primitive value ]".
Comment 1 kangax 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.
Comment 2 kangax 2013-12-10 01:54:06 PST
This no longer happens. Should be closed.