Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/npmlog/log.js')
-rw-r--r--node_modules/npmlog/log.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/node_modules/npmlog/log.js b/node_modules/npmlog/log.js
index 17c8ac921..341f3313a 100644
--- a/node_modules/npmlog/log.js
+++ b/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) {
- Object.defineProperty(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')