| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4cc10d5 commit 6909e3e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -831,9 +831,9 @@ assert.ifError = function ifError(err) { | |||
| 831 | 831 | tmp2.shift(); | |
| 832 | 832 | // Filter all frames existing in err.stack. | |
| 833 | 833 | let tmp1 = newErr.stack.split('\n'); | |
| 834 | - for (let i = 0; i < tmp2.length; i++) { | ||
| 834 | + for (const errFrame of tmp2) { | ||
| 835 | 835 | // Find the first occurrence of the frame. | |
| 836 | - const pos = tmp1.indexOf(tmp2[i]); | ||
| 836 | + const pos = tmp1.indexOf(errFrame); | ||
| 837 | 837 | if (pos !== -1) { | |
| 838 | 838 | // Only keep new frames. | |
| 839 | 839 | tmp1 = tmp1.slice(0, pos); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments