-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #17948 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
- Loading branch information
1 parent
d4e5ace
commit cb7a3cc
Showing
6 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
test/parallel/test-regress-GH-1899.js → ...test-child-process-can-write-to-stdout.js
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
2 changes: 2 additions & 0 deletions
2
test/parallel/test-regress-GH-819.js → ...arallel/test-net-connect-after-destroy.js
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
3 changes: 2 additions & 1 deletion
3
test/parallel/test-regress-GH-746.js → ...test-net-listen-after-destroying-stdin.js
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,18 @@ | ||
'use strict'; | ||
// Tests that os.userInfo correctly handles errors thrown by option property | ||
// getters. See https://github.com/nodejs/node/issues/12370. | ||
|
||
const common = require('../common'); | ||
const assert = require('assert'); | ||
const execFile = require('child_process').execFile; | ||
|
||
const script = `os.userInfo({ | ||
get encoding() { | ||
throw new Error('xyz'); | ||
} | ||
})`; | ||
|
||
const node = process.execPath; | ||
execFile(node, [ '-e', script ], common.mustCall((err, stdout, stderr) => { | ||
assert(stderr.includes('Error: xyz'), 'userInfo crashes'); | ||
})); |
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
12 changes: 5 additions & 7 deletions
12
test/parallel/test-regress-GH-12371.js → ...llel/test-vm-api-handles-getter-errors.js
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