console: remove trace frame · nodejs/node@091902a (original) (raw)

Original file line number Diff line number Diff line change
@@ -325,13 +325,13 @@ const consoleMethods = {
325 325 trace(kTraceInstant, kTraceConsoleCategory, `time::${label}`, 0);
326 326 },
327 327
328 -trace(...args) {
328 +trace: function trace(...args) {
329 329 const err = {
330 330 name: 'Trace',
331 331 message: this[kFormatForStderr](args)
332 332 };
333 333 // eslint-disable-next-line no-restricted-syntax
334 -Error.captureStackTrace(err, this.trace);
334 +Error.captureStackTrace(err, trace);
335 335 this.error(err.stack);
336 336 },
337 337