X Tutup
The Wayback Machine - https://web.archive.org/web/20210813155850/https://github.com/nodejs/node/commit/d61977f03e
Skip to content
Permalink
Browse files
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 <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
lpinca committed Apr 6, 2021
1 parent 8b05e32 commit d61977f03ed6952342aa2ed69a8fc515c2143d94
Showing with 0 additions and 8 deletions.
  1. +0 −8 test/parallel/test-http-many-ended-pipelines.js
@@ -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');

0 comments on commit d61977f

Please sign in to comment.
X Tutup