-
Notifications
You must be signed in to change notification settings - Fork 30.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! src: fix process exit listeners not receiving unsettled tla codes
split tests
- Loading branch information
1 parent
80a0041
commit 549873d
Showing
5 changed files
with
40 additions
and
32 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,5 @@ | ||
process.on('exit', (exitCode) => { | ||
console.log(`the exit listener received code: ${exitCode}`); | ||
}) | ||
|
||
await new Promise(() => {}); |
7 changes: 7 additions & 0 deletions
7
test/fixtures/es-modules/tla/unresolved-withexitcode-and-listener.mjs
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,7 @@ | ||
process.on('exit', (exitCode) => { | ||
console.log(`the exit listener received code: ${exitCode}`); | ||
}); | ||
|
||
process.exitCode = 42; | ||
|
||
await new Promise(() => {}); |
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,7 +1,2 @@ | ||
process.on('exit', (exitCode) => { | ||
console.log(`the exit listener received code: ${exitCode}`); | ||
}); | ||
|
||
process.exitCode = 42; | ||
|
||
await new Promise(() => {}); |
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 @@ | ||
process.on('exit', (exitCode) => { | ||
console.log(`the exit listener received code: ${exitCode}`); | ||
}) | ||
|
||
await new Promise(() => {}); |