Bug 144757

Summary: Web Inspector: BasicBlockAnnotator highlights incorrect range for first statement with class
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Saam Barati <saam>
Status: NEW ---    
Severity: Normal CC: graouts, inspector-bugzilla-changes, jonowells, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[ISSUE] Test case
none
[IMAGE] Issue, see the top line none

Description Joseph Pecoraro 2015-05-07 13:46:56 PDT
Created attachment 252620 [details]
[ISSUE] Test case

* SUMMARY
BasicBlockAnnotator highlights incorrect range for first statement with class.

See attached screenshot. "A" is highlighted, but I expected "Alpha = class Alpha {" to be highlighted like the other class statements below it.

* STEPS TO REPRODUCE
1. Inspect attached test page (in zip) [type-test.html]
2. Select Resource "type-test.js"
3. Enable Type Profiling
4. Reload
  => First line is not properly highlighted as evaluated
Comment 1 Radar WebKit Bug Importer 2015-05-07 13:47:24 PDT
<rdar://problem/20861228>
Comment 2 Joseph Pecoraro 2015-05-07 13:47:29 PDT
Created attachment 252622 [details]
[IMAGE] Issue, see the top line