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_
topic
Instead it exception occurs "[ Exception: TypeError: Cannot convert object to primitive value ]".
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
kangax
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
This no longer happens. Should be closed.