Skip to content

Commit 74ec40b

Browse files
committed
fix(stack-parser): fix lines slice iteration
1 parent e4277e7 commit 74ec40b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/stackParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default class StackParser {
8080
* In some cases column number of the error stack trace frame would be less then 200, but source code is minified
8181
* For this cases we need to check, that all of the lines to collect have length less than 200 too
8282
*/
83-
for (const lineToCheck in lines.slice(lineFrom, lineTo)) {
83+
lines.slice(lineFrom, lineTo).forEach((lineToCheck) => {
8484
if (lineToCheck.length > minifiedSourceCodeThreshold) {
8585
return null;
8686
} else {
@@ -91,7 +91,7 @@ export default class StackParser {
9191

9292
extractedLineIndex += 1;
9393
}
94-
}
94+
});
9595

9696
return sourceCodeLines;
9797
} catch (e) {

0 commit comments

Comments
 (0)