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
path: root/lib
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2017-05-31 02:50:14 +0300
committerRebecca Turner <me@re-becca.org>2017-06-02 04:16:38 +0300
commit80c42d2181dd4d1b79fcee4e9233df268dfb30b7 (patch)
treef662f98f8edb632aa7bd889c54ad43ef2c00752f /lib
parent63df4fcddc7445efb50cc7d8e09cdd45146d3e39 (diff)
inflate-bundled: Guard against cycles, as symlinks are bundles now
Fixes: #16800 Credit: @iarna Reviewed-By: @zkat
Diffstat (limited to 'lib')
-rw-r--r--lib/install/inflate-bundled.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install/inflate-bundled.js b/lib/install/inflate-bundled.js
index 70da583df..168c8b064 100644
--- a/lib/install/inflate-bundled.js
+++ b/lib/install/inflate-bundled.js
@@ -4,8 +4,8 @@ var childPath = require('../utils/child-path.js')
var reset = require('./node.js').reset
module.exports = function inflateBundled (bundler, parent, children) {
- validate('OOA', arguments)
children.forEach(function (child) {
+ if (child.fromBundle === bundler) return
reset(child)
child.fromBundle = bundler
child.isInLink = bundler.isLink