Skip to content

Commit ccbccd6

Browse files
committed
Reword the comment
1 parent 6dcde1f commit ccbccd6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/instrument.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ function computeNextEntry(reducer, action, state, error) {
6868
} catch (err) {
6969
nextError = err.toString();
7070
if (typeof window === 'object' && typeof window.chrome !== 'undefined') {
71-
// Solve the issue with loosing sourceMaps in Chrome
72-
setTimeout(() => { throw err; }, 0);
73-
} else console.error(err.stack || err);
71+
// In Chrome, rethrowing provides better source map support
72+
setTimeout(() => { throw err; });
73+
} else {
74+
console.error(err.stack || err);
75+
}
7476
}
7577

7678
return {

0 commit comments

Comments
 (0)