Rewrite AppDomain to handle uncaughts & promises
This commit is contained in:
+10
@@ -30,6 +30,16 @@ class CResponse
|
||||
|
||||
this.raw.writeHead( this.statusCode, this.headers );
|
||||
this.raw.end( this.content );
|
||||
|
||||
if( this.raw._rejection )
|
||||
{
|
||||
process.removeListener( "unhandledRejection", this.raw._rejection );
|
||||
}
|
||||
|
||||
if( this.raw._uncaught )
|
||||
{
|
||||
process.removeListener( "uncaughtException", this.raw._uncaught );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user