| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8cce295 commit 50ee4e6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ const originalRefreshSizeStderr = process.stderr._refreshSize; | |||
| 5 | 5 | const originalRefreshSizeStdout = process.stdout._refreshSize; | |
| 6 | 6 | ||
| 7 | 7 | const wrap = (fn, ioStream, string) => { | |
| 8 | - return () => { | ||
| 8 | + const wrapped = common.mustCall(() => { | ||
| 9 | 9 | // The console.log() call prints a string that is in the .out file. In other | |
| 10 | 10 | // words, the console.log() is part of the test, not extraneous debugging. | |
| 11 | 11 | console.log(string); | |
@@ -16,7 +16,8 @@ const wrap = (fn, ioStream, string) => { | |||
| 16 | 16 | if (!common.isSunOS || e.code !== 'EINVAL') | |
| 17 | 17 | throw e; | |
| 18 | 18 | } | |
| 19 | - }; | ||
| 19 | + }); | ||
| 20 | + return wrapped; | ||
| 20 | 21 | }; | |
| 21 | 22 | ||
| 22 | 23 | process.stderr._refreshSize = wrap(originalRefreshSizeStderr, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments