File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const test = require('node:test');
55const fs = require ( 'node:fs/promises' ) ;
66const assert = require ( 'node:assert/strict' ) ;
77
8- const stackFramesRegexp = / ( \s + ) ( ( .+ ?) \s + \( ) ? (?: \( ? ( .+ ?) : ( \d + ) (?: : ( \d + ) ) ? ) \) ? ( \s + \{ ) ? ( \[ \d + m ) ? ( \n | $ ) / g;
8+ const stackFramesRegexp = / (?< = \n ) ( \s + ) ( ( .+ ?) \s + \( ) ? (?: \( ? ( .+ ?) : ( \d + ) (?: : ( \d + ) ) ? ) \) ? ( \s + \{ ) ? ( \[ \d + m ) ? ( \n | $ ) / g;
99const windowNewlineRegexp = / \r / g;
1010
1111function replaceStackTrace ( str , replacement = '$1*$7$8\n' ) {
@@ -17,7 +17,7 @@ function replaceWindowsLineEndings(str) {
1717}
1818
1919function replaceWindowsPaths ( str ) {
20- return str . replaceAll ( path . win32 . sep , path . posix . sep ) ;
20+ return common . isWindows ? str . replaceAll ( path . win32 . sep , path . posix . sep ) : str ;
2121}
2222
2323function transform ( ...args ) {
You can’t perform that action at this time.
0 commit comments