Bug 163405 - Uncaught Exception: TypeError: this.positionToOffset is not a function - seen hovering expressions with Type Profiler enabled
Summary: Uncaught Exception: TypeError: this.positionToOffset is not a function - seen...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-10-13 15:03 PDT by Joseph Pecoraro
Modified: 2016-10-14 00:12 PDT (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.79 KB, patch)
2016-10-13 15:10 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 Joseph Pecoraro 2016-10-13 15:03:40 PDT
* STEPS TO REPRODUCE
1. Enable Type Profiler
2. Attempt to get type details hovering an sub-expression like "obj.foo"
  => Error dialog

-------
Uncaught Exceptions:
 - TypeError: this.positionToOffset is not a function. (In 'this.positionToOffset({line: range.start.line, ch: range.start.ch})', 'this.positionToOffset' is undefined) (at SourceCodeTextEditor.js:1523:43)
    _tokenTrackingControllerHighlightedJavaScriptTypeInformation @ SourceCodeTextEditor.js:1523:43
    tokenTrackingControllerNewHighlightCandidate @ SourceCodeTextEditor.js:1454:78
    _processNewHoveredToken @ CodeMirrorTokenTrackingController.js:448:72
    _processNewHoveredToken @ [native code]
-------
Comment 1 Radar WebKit Bug Importer 2016-10-13 15:04:24 PDT
<rdar://problem/28763953>
Comment 2 Nikita Vasilyev 2016-10-13 15:06:43 PDT
Could you attach file:///Users/pecoraro/Desktop/control-flow.html? :)
Comment 3 Joseph Pecoraro 2016-10-13 15:10:26 PDT
Created attachment 291524 [details]
[PATCH] Proposed Fix
Comment 4 WebKit Commit Bot 2016-10-14 00:12:38 PDT
Comment on attachment 291524 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 291524

Committed r207329: <http://trac.webkit.org/changeset/207329>
Comment 5 WebKit Commit Bot 2016-10-14 00:12:42 PDT
All reviewed patches have been landed.  Closing bug.