-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix regression - os.constants.errno are different from what WIN32 act…
…ually returns
- Loading branch information
1 parent
486205b
commit fadc34b
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var fs = require('fs'); | ||
|
||
module.exports = function (result) { | ||
// creates a tmp file and then closes the file descriptor as per issue 115 | ||
// https://github.com/raszi/node-tmp/issues/115 | ||
const self = this; | ||
fs.closeSync(result.fd); | ||
result.removeCallback(); | ||
self.out(result.name, self.exit); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"tc": "issue115", | ||
"tc": "issue115-sync", | ||
"async": false, | ||
"file": true, | ||
"options": {}, | ||
|