Skip to content

Commit

Permalink
Hide fs.close and fs.closeSync previous symbols
Browse files Browse the repository at this point in the history
EDIT(isaacs) - ported to land cleanly on master
Original: b73606e
  • Loading branch information
coreyfarrell authored and isaacs committed Aug 14, 2019
1 parent 770ee51 commit bbb8e17
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions graceful-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ if (!global[gracefulQueue]) {
})
}

close[previousSymbol] = fs$close
Object.defineProperty(close, previousSymbol, {
value: fs$close
})
return close
})(fs.close)

Expand All @@ -69,7 +71,9 @@ if (!global[gracefulQueue]) {
retry()
}

closeSync[previousSymbol] = fs$closeSync
Object.defineProperty(closeSync, previousSymbol, {
value: fs$closeSync
})
return closeSync
})(fs.closeSync)

Expand Down

0 comments on commit bbb8e17

Please sign in to comment.