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;
|
||||
const trace = process.traceProcessWarnings ||
|
||||
(isDeprecation && process.traceDeprecation);
|
||||
let msg = `${prefix}`;
|
||||
var msg = `${prefix}`;
|
||||
if (warning.code)
|
||||
msg += `[${warning.code}] `;
|
||||
if (trace && warning.stack) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user