Bug 153259
Summary: | Web Inspector: Cannot expand "TypeError.prototype" to see its properties | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> |
Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | graouts, inspector-bugzilla-changes, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | All | ||
OS: | All |
Joseph Pecoraro
* SUMMARY
Cannot expand "TypeError.prototype" to see its properties.
* STEPS TO REPRODUCE
1. js> TypeError.prototype
2. Try to expand the object
=> Uncaught Exception, empty UI
* INFO
[Error] Uncaught exception in inspector page while dispatching callback for command Runtime.getProperties
TypeError: undefined is not an object (evaluating 'properties.stack.value')
(anonymous function) — ErrorObjectView.js:96
[native code]
(anonymous function) — RemoteObject.js:567
* NOTES
- Apparently the backend thinks that "TypeError.prototype" is an "error" object type.
- Seems like JSInjectedScriptHost::subtype (or WebInjectedScriptHost::subtype) might be returning a subtype even for the prototype. The frontend then treats this like a special Error object instance instead of a generic Object.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/24249467>