Use _.cloneDeep in build/util.js.

Former-commit-id: 06094c21fe084192933665982edc9a4212016406
This commit is contained in:
John-David Dalton
2013-04-13 11:13:26 -07:00
parent 540851ab6a
commit 5d109077e5

View File

@@ -74,7 +74,7 @@
* @memberOf util * @memberOf util
* @type Object * @type Object
*/ */
'fs': _.defaults({}, fs, { 'fs': _.defaults(_.cloneDeep(fs), {
'existsSync': fs.existsSync || path.existsSync, 'existsSync': fs.existsSync || path.existsSync,
'mkdirpSync': mkdirpSync 'mkdirpSync': mkdirpSync
}), }),
@@ -85,7 +85,7 @@
* @memberOf util * @memberOf util
* @type Object * @type Object
*/ */
'path': _.defaults({}, path, { 'path': _.defaults(_.cloneDeep(path), {
'sep': sep, 'sep': sep,
'sepEscaped': sepEscaped 'sepEscaped': sepEscaped
}) })