Bug 143428 - Web Inspector: Regression: Map instances don't expand
Summary: Web Inspector: Regression: Map instances don't expand
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-04-05 16:55 PDT by Nikita Vasilyev
Modified: 2015-04-05 18:57 PDT (History)
8 users (show)

See Also:


Attachments
Empty map (12.67 KB, image/png)
2015-04-05 16:55 PDT, Nikita Vasilyev
no flags Details
[PATCH] Proposed Fix (3.51 KB, patch)
2015-04-05 17:22 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2015-04-05 16:55:30 PDT
Created attachment 250175 [details]
Empty map

To reproduce:

var m = new Map;
for (var i = 0; i < 10; i++)
	m.set(i, "Zoidberg")
console.dir(m);


Map doesn't expand, the following error is thrown:

[Error] Uncaught exception in inspector page while dispatching callback for command Runtime.getCollectionEntries:  ReferenceError: Cannot access uninitialized variable. ReferenceError: Cannot access uninitialized variable.ObjectTreeMapEntryTreeElement@.../Views/ObjectTreeMapEntryTreeElement.js:33:9
ObjectTreeMapKeyTreeElement@.../Views/ObjectTreeMapEntryTreeElement.js:88:14
_updateEntries@.../Views/ObjectTreeView.js:255:87
_updateChildren@.../Views/ObjectTreeView.js:248:21
_updateChildren@[native code]
.../Resources/Protocol/RemoteObject.js:369:21
_dispatchCallback@.../Protocol/InspectorBackend.js:181:31
dispatch@.../Protocol/InspectorBackend.js:86:35
dispatchNextQueuedMessageFromBackend@.../Resources/Protocol/MessageDispatcher.js:42:34
	_dispatchCallback (InspectorBackend.js, line 183)
	dispatch (InspectorBackend.js, line 86)
	dispatchNextQueuedMessageFromBackend (MessageDispatcher.js, line 42)
Comment 1 Radar WebKit Bug Importer 2015-04-05 16:55:55 PDT
<rdar://problem/20429794>
Comment 2 Joseph Pecoraro 2015-04-05 17:11:54 PDT
I thought I had caught this in review.

    super(this._object, propertyPath);

Cannot use "this" before the super call. Easy fix.
Comment 3 Joseph Pecoraro 2015-04-05 17:22:22 PDT
Created attachment 250179 [details]
[PATCH] Proposed Fix
Comment 4 Brian Burg 2015-04-05 18:07:48 PDT
Comment on attachment 250179 [details]
[PATCH] Proposed Fix

r=me

Is this caught by an ESLint rule?
Comment 5 WebKit Commit Bot 2015-04-05 18:57:21 PDT
Comment on attachment 250179 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 250179

Committed r182372: <http://trac.webkit.org/changeset/182372>
Comment 6 WebKit Commit Bot 2015-04-05 18:57:25 PDT
All reviewed patches have been landed.  Closing bug.