From ccbccd681077ba99eaa7ae9be3454c5f0e9e5127 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 27 Dec 2015 00:09:51 +0000 Subject: [PATCH] Reword the comment --- src/instrument.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/instrument.js b/src/instrument.js index 8006e597..74916126 100644 --- a/src/instrument.js +++ b/src/instrument.js @@ -68,9 +68,11 @@ function computeNextEntry(reducer, action, state, error) { } catch (err) { nextError = err.toString(); if (typeof window === 'object' && typeof window.chrome !== 'undefined') { - // Solve the issue with loosing sourceMaps in Chrome - setTimeout(() => { throw err; }, 0); - } else console.error(err.stack || err); + // In Chrome, rethrowing provides better source map support + setTimeout(() => { throw err; }); + } else { + console.error(err.stack || err); + } } return {