| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 937afcc commit 5f9ee9f
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -582,7 +582,7 @@ function isStackOverflowError(err) { | |||
| 582 | 582 | } | |
| 583 | 583 | } | |
| 584 | 584 | ||
| 585 | - return err.name === maxStack_ErrorName && | ||
| 585 | + return err && err.name === maxStack_ErrorName && | ||
| 586 | 586 | err.message === maxStack_ErrorMessage; | |
| 587 | 587 | } | |
| 588 | 588 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,14 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + require('../common'); | ||
| 3 | + const { Writable } = require('stream'); | ||
| 4 | + const { Console } = require('console'); | ||
| 5 | + | ||
| 6 | + const stream = new Writable({ | ||
| 7 | + write() { | ||
| 8 | + throw null; // eslint-disable-line no-throw-literal | ||
| 9 | + } | ||
| 10 | + }); | ||
| 11 | + | ||
| 12 | + const console = new Console({ stdout: stream }); | ||
| 13 | + | ||
| 14 | + console.log('test'); // Should not throw | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments