Skip to content

Commit e213af2

Browse files
authored
Merge pull request #120 from codex-team/fix-lines-slice-iteration
2 parents e4277e7 + ea7e53a commit e213af2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@hawk.so/javascript",
33
"type": "commonjs",
4-
"version": "3.2.2",
4+
"version": "3.2.3",
55
"description": "JavaScript errors tracking for Hawk.so",
66
"files": [
77
"dist"

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)