Skip to content

Commit d61977f

Browse files
committed
test: remove dead code
`console.trace()` was used when printing the warning for a possible event listeners leak. It is no longer used since commit c6656db that introduced the `process.emitWarning()` API and used it to print the warning. PR-URL: #38016 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8b05e32 commit d61977f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

test/parallel/test-http-many-ended-pipelines.js

-8
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121

2222
'use strict';
2323
const common = require('../common');
24-
25-
// No warnings should happen!
26-
const trace = console.trace;
27-
console.trace = function() {
28-
trace.apply(console, arguments);
29-
throw new Error('no tracing should happen here');
30-
};
31-
3224
const http = require('http');
3325
const net = require('net');
3426

0 commit comments

Comments
 (0)