process: fix permanent deopt
PR-URL: https://github.com/nodejs/node/pull/13384 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
e374e44a8a
commit
fc6f487f2e
@ -90,7 +90,7 @@ function setupProcessWarnings() {
|
|||||||
if (isDeprecation && process.noDeprecation) return;
|
if (isDeprecation && process.noDeprecation) return;
|
||||||
const trace = process.traceProcessWarnings ||
|
const trace = process.traceProcessWarnings ||
|
||||||
(isDeprecation && process.traceDeprecation);
|
(isDeprecation && process.traceDeprecation);
|
||||||
let msg = `${prefix}`;
|
var msg = `${prefix}`;
|
||||||
if (warning.code)
|
if (warning.code)
|
||||||
msg += `[${warning.code}] `;
|
msg += `[${warning.code}] `;
|
||||||
if (trace && warning.stack) {
|
if (trace && warning.stack) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user