From 5d109077e5a1b1c003dfdf2855291807d0eda0ed Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 13 Apr 2013 11:13:26 -0700 Subject: [PATCH] Use `_.cloneDeep` in build/util.js. Former-commit-id: 06094c21fe084192933665982edc9a4212016406 --- build/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/util.js b/build/util.js index 851eb55aa..0ea45c3cd 100755 --- a/build/util.js +++ b/build/util.js @@ -74,7 +74,7 @@ * @memberOf util * @type Object */ - 'fs': _.defaults({}, fs, { + 'fs': _.defaults(_.cloneDeep(fs), { 'existsSync': fs.existsSync || path.existsSync, 'mkdirpSync': mkdirpSync }), @@ -85,7 +85,7 @@ * @memberOf util * @type Object */ - 'path': _.defaults({}, path, { + 'path': _.defaults(_.cloneDeep(path), { 'sep': sep, 'sepEscaped': sepEscaped })