Repository navigation
Commit 996f659
committed
Web Inspector: use zero-based
https://bugs.webkit.org/show_bug.cgi?id=327972
Reviewed by Timothy Hatcher.
`SymbolTable` keeps one-based locations which are later used for `Debugger.Location` which expects zero-based coordinates.
Look at uses of `ScriptExecutable::firstLine` and `ScriptExecutable::startColumn` for how `SymbolTable` is populated.
* Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.cpp:
(Inspector::valueForScopeLocation):
* LayoutTests/inspector/debugger/getFunctionDetails.html:
* LayoutTests/inspector/debugger/getFunctionDetails-expected.txt:
* LayoutTests/inspector/debugger/paused-scopes-expected.txt:
Canonical link: https://commits.webkit.org/324170@mainDebugger.Location for InjectedScript.CallFrameProxy
1 parent 6247349 commit 996f659
4 files changed
Lines changed: 129 additions & 87 deletions
File tree
- LayoutTests/inspector/debugger
- Source/JavaScriptCore/inspector
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
101 | 108 | | |
102 | 109 | | |
103 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
104 | 136 | | |
105 | 137 | | |
106 | 138 | | |
107 | 139 | | |
108 | 140 | | |
109 | 141 | | |
| 142 | + | |
110 | 143 | | |
111 | 144 | | |
0 commit comments