File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ async function runTests(attempt) {
6868 env : {
6969 ...process . env ,
7070 CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS : true ,
71+ CHROME_DEVTOOLS_MCP_CRASH_ON_UNCAUGHT : true ,
7172 } ,
7273 } ) ;
7374
Original file line number Diff line number Diff line change @@ -58,9 +58,11 @@ if (args.usageStatistics) {
5858 } ) ;
5959}
6060
61- process . on ( 'unhandledRejection' , ( reason , promise ) => {
62- logger ( 'Unhandled promise rejection' , promise , reason ) ;
63- } ) ;
61+ if ( process . env [ 'CHROME_DEVTOOLS_MCP_CRASH_ON_UNCAUGHT' ] !== 'true' ) {
62+ process . on ( 'unhandledRejection' , ( reason , promise ) => {
63+ logger ( 'Unhandled promise rejection' , promise , reason ) ;
64+ } ) ;
65+ }
6466
6567logger ( `Starting Chrome DevTools MCP Server v${ VERSION } ` ) ;
6668const server = new McpServer (
You can’t perform that action at this time.
0 commit comments