diff options
Diffstat (limited to 'deps/npm/node_modules/npmlog/log.js')
-rw-r--r-- | deps/npm/node_modules/npmlog/log.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/npm/node_modules/npmlog/log.js b/deps/npm/node_modules/npmlog/log.js index 516a4f56a5..341f3313ab 100644 --- a/deps/npm/node_modules/npmlog/log.js +++ b/deps/npm/node_modules/npmlog/log.js @@ -182,7 +182,12 @@ 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', { + value: stack = arg.stack + '', + enumerable: true, + writable: true + }) } } if (stack) a.unshift(stack + '\n') |