diff options
Diffstat (limited to 'lib/console.js')
-rw-r--r-- | lib/console.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/console.js b/lib/console.js index 08a6cf4fa7..48343bc3e8 100644 --- a/lib/console.js +++ b/lib/console.js @@ -94,6 +94,10 @@ function write(ignoreErrors, stream, string, errorhandler) { stream.write(string, errorhandler); } catch (e) { + // console is a debugging utility, so it swallowing errors is not desirable + // even in edge cases such as low stack space. + if (e.message === 'Maximum call stack size exceeded') + throw e; // Sorry, there’s no proper way to pass along the error here. } finally { stream.removeListener('error', noop); |