()
| 171 | } |
| 172 | |
| 173 | function computeIgnoreFrames() { |
| 174 | if (!stackTracesEnabled()) { |
| 175 | return; |
| 176 | } |
| 177 | const frames: string[][] = []; |
| 178 | captureStackTraces(frames, 2); |
| 179 | const frames1 = frames[0]; |
| 180 | const frames2 = frames[1]; |
| 181 | for (let i = 0; i < frames1.length; i++) { |
| 182 | const frame1 = frames1[i]; |
| 183 | if (frame1.indexOf(ERROR_TAG) == -1) { |
| 184 | let match = frame1.match(/^\s*at\s+/); |
| 185 | if (match) { |
| 186 | sepTemplate = match[0] + SEP_TAG + ' (http://localhost)'; |
| 187 | break; |
| 188 | } |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | for (let i = 0; i < frames1.length; i++) { |
| 193 | const frame1 = frames1[i]; |
| 194 | const frame2 = frames2[i]; |
| 195 | if (frame1 === frame2) { |
| 196 | IGNORE_FRAMES[frame1] = true; |
| 197 | } else { |
| 198 | break; |
| 199 | } |
| 200 | } |
| 201 | } |
| 202 | computeIgnoreFrames(); |
| 203 | } |
no test coverage detected
searching dependent graphs…