File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ function parseTestFlags(filename = process.argv[1]) {
8181 }
8282 return source
8383 . substring ( flagStart , flagEnd )
84- . replace ( / _ / g, '-' )
8584 . split ( / \s + / )
8685 . filter ( Boolean ) ;
8786}
@@ -97,9 +96,8 @@ if (process.argv.length === 2 &&
9796 require ( 'cluster' ) . isPrimary &&
9897 fs . existsSync ( process . argv [ 1 ] ) ) {
9998 const flags = parseTestFlags ( ) ;
100- const args = process . execArgv . map ( ( arg ) => arg . replace ( / _ / g, '-' ) ) ;
10199 for ( const flag of flags ) {
102- if ( ! args . includes ( flag ) &&
100+ if ( ! process . execArgv . includes ( flag ) &&
103101 // If the binary is build without `intl` the inspect option is
104102 // invalid. The test itself should handle this case.
105103 ( process . features . inspector || ! flag . startsWith ( '--inspect' ) ) ) {
You can’t perform that action at this time.
0 commit comments