mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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 c6656db352 that
introduced the `process.emitWarning()` API and used it to print the
warning.
PR-URL: https://github.com/nodejs/node/pull/38016
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
8b05e32519
commit
d61977f03e
1 file changed
-8
@@ -21,14 +21,6 @@
|
||||
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
|
||||
// No warnings should happen!
|
||||
const trace = console.trace;
|
||||
console.trace = function() {
|
||||
trace.apply(console, arguments);
|
||||
throw new Error('no tracing should happen here');
|
||||
};
|
||||
|
||||
const http = require('http');
|
||||
const net = require('net');
|
||||
|
||||
|
||||
Reference in new issue
Block a user