8000 Use `_.cloneDeep` in build/util.js. · lodash/lodash@5d10907 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d10907

Browse files
committed
Use _.cloneDeep in build/util.js.
Former-commit-id: 06094c21fe084192933665982edc9a4212016406
1 parent 540851a commit 5d10907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
* @memberOf util
7575
* @type Object
7676
*/
77-
'fs': _.defaults({}, fs, {
77+
'fs': _.defaults(_.cloneDeep(fs), {
7878
'existsSync': fs.existsSync || path.existsSync,
7979
'mkdirpSync': mkdirpSync
8080
}),
@@ -85,7 +85,7 @@
8585
* @memberOf util
8686
* @type Object
8787
*/
88-
'path': _.defaults({}, path, {
88+
'path': _.defaults(_.cloneDeep(path), {
8989
'sep': sep,
9090
'sepEscaped': sepEscaped
9191
})

0 commit comments

Comments
 (0)
0