diff options
Diffstat (limited to 'node_modules/npmlog/log.js')
-rw-r--r-- | node_modules/npmlog/log.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/npmlog/log.js b/node_modules/npmlog/log.js index 516a4f56a..17c8ac921 100644 --- a/node_modules/npmlog/log.js +++ b/node_modules/npmlog/log.js @@ -182,7 +182,7 @@ log.log = function (lvl, prefix, message) { // resolve stack traces to a plain string. if (typeof arg === 'object' && arg && (arg instanceof Error) && arg.stack) { - arg.stack = stack = arg.stack + '' + Object.defineProperty(arg, 'stack', arg.stack = stack = arg.stack + '') } } if (stack) a.unshift(stack + '\n') |