mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 22:02:33 +00:00

PR-URL: https://github.com/nodejs/node/pull/3599 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
16 lines
492 B
JavaScript
16 lines
492 B
JavaScript
'use strict'
|
|
var validate = require('aproba')
|
|
var childPath = require('../utils/child-path.js')
|
|
|
|
module.exports = function inflateBundled (parent, children) {
|
|
validate('OA', arguments)
|
|
children.forEach(function (child) {
|
|
child.fromBundle = true
|
|
child.parent = parent
|
|
child.path = childPath(parent.path, child)
|
|
child.realpath = childPath(parent.path, child)
|
|
child.isLink = child.isLink || parent.isLink || parent.target
|
|
inflateBundled(child, child.children)
|
|
})
|
|
}
|