File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2921,7 +2921,8 @@ void Init(std::vector<std::string>* argv,
29212921 index = node_options.find (' ' , index + 1 );
29222922 if (index - prev_index == 1 ) continue ;
29232923
2924- const std::string option = node_options.substr (prev_index + 1 , index);
2924+ const std::string option = node_options.substr (
2925+ prev_index + 1 , index - prev_index - 1 );
29252926 if (!option.empty ())
29262927 env_argv.emplace_back (std::move (option));
29272928 } while (index != std::string::npos);
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ const tmpdir = require('../common/tmpdir');
1414tmpdir . refresh ( ) ;
1515process . chdir ( tmpdir . path ) ;
1616
17- expect ( `-r ${ require . resolve ( '../fixtures/printA.js' ) } ` , 'A\nB\n' ) ;
17+ const printA = require . resolve ( '../fixtures/printA.js' ) ;
18+ expect ( `-r ${ printA } ` , 'A\nB\n' ) ;
19+ expect ( `-r ${ printA } -r ${ printA } ` , 'A\nB\n' ) ;
1820expect ( '--no-deprecation' , 'B\n' ) ;
1921expect ( '--no-warnings' , 'B\n' ) ;
2022expect ( '--trace-warnings' , 'B\n' ) ;
@@ -29,6 +31,9 @@ expect('--v8-pool-size=10', 'B\n');
2931expect ( '--trace-event-categories node' , 'B\n' ) ;
3032// eslint-disable-next-line no-template-curly-in-string
3133expect ( '--trace-event-file-pattern {pid}-${rotation}.trace_events' , 'B\n' ) ;
34+ // eslint-disable-next-line no-template-curly-in-string
35+ expect ( '--trace-event-file-pattern {pid}-${rotation}.trace_events ' +
36+ '--trace-event-categories node.async_hooks' , 'B\n' ) ;
3237
3338if ( ! common . isWindows ) {
3439 expect ( '--perf-basic-prof' , 'B\n' ) ;
You can’t perform that action at this time.
0 commit comments