| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,9 @@ function replaceStackTrace(str, replacement = '$1*$7$8\n') { | |||
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | function replaceInternalStackTrace(str) { | |
| 20 | - return str.replaceAll(/(\W+).*node:internal.*/g, '$1*'); | ||
| 20 | + // Replace non-internal frame `at TracingChannel.traceSync (node:diagnostics_channel:328:14)` | ||
| 21 | + // as well as `at node:internal/main/run_main_module:33:47` with `*`. | ||
| 22 | + return str.replaceAll(/(\W+).*[(\s]node:.*/g, '$1*'); | ||
| 21 | 23 | } | |
| 22 | 24 | ||
| 23 | 25 | function replaceWindowsLineEndings(str) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: | |||
| 7 | 7 | * | |
| 8 | 8 | * | |
| 9 | 9 | * | |
| 10 | - at TracingChannel.traceSync (node:diagnostics_channel:328:14) | ||
| 10 | + * | ||
| 11 | 11 | * | |
| 12 | 12 | * | |
| 13 | 13 | * | |
| Back | FazBrowse Home | New Git URL |
0 commit comments