Skip to content

Commit

Permalink
Can't chain process.on()
Browse files Browse the repository at this point in the history
This fails since VSCode update. Maybe only with webpack?
  • Loading branch information
grahambates committed Feb 2, 2024
1 parent 8a956aa commit 5dd5c5a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/debugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,13 @@ export class UAEDebugSession extends LoggingDebugSession {

this.gdb = new GdbClient();

process
.on("unhandledRejection", (reason, p) => {
logger.error(reason + " Unhandled Rejection at Promise " + p);
})
.on("uncaughtException", (err) => {
logger.error("Uncaught Exception thrown: " + this.errorString(err));
process.exit(1);
});
process.on("unhandledRejection", (reason, p) => {
logger.error(reason + " Unhandled Rejection at Promise " + p);
});
process.on("uncaughtException", (err) => {
logger.error("Uncaught Exception thrown: " + this.errorString(err));
process.exit(1);
});

const mutex = new Mutex();
this.gdb.on("stop", (haltStatus) => {
Expand Down

0 comments on commit 5dd5c5a

Please sign in to comment.