Don't pass events to process.exit(), which is an error in Node v20

This commit is contained in:
James Coglan
2023-09-07 18:48:18 +01:00
parent f1f48e6c23
commit e9722f4a2f
+1 -1
View File
@@ -20,7 +20,7 @@ var runCase = function(n) {
if (n > cases) {
url = host + '/updateReports?agent=' + agent;
socket = new WebSocket(url);
socket.onclose = process.exit;
socket.onclose = function() { process.exit() };
return;
}