(paths, pathIndex, depth)
| 134 | |
| 135 | // The following function helps to encode such triplets. |
| 136 | function addFrameToFrameList(paths, pathIndex, depth) { |
| 137 | // Try to combine with the previous code run. |
| 138 | if (paths.length > 0 && |
| 139 | paths[paths.length - 3] + 1 === pathIndex && |
| 140 | paths[paths.length - 2] === depth) { |
| 141 | paths[paths.length - 1]++; |
| 142 | } else { |
| 143 | paths.push(pathIndex, depth, 1); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | function findNextFrame(file, stack, stackPos, step, filter) { |
| 148 | let codeId = -1; |
no test coverage detected
searching dependent graphs…