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:
Brian White 2017-06-02 02:09:58 -04:00
parent e374e44a8a
commit fc6f487f2e
No known key found for this signature in database
GPG Key ID: 606D7358F94DA209

View File

@ -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) {