Rewrite AppDomain to handle uncaughts & promises

This commit is contained in:
2022-04-06 13:51:04 +09:00
parent 7dedaf8d77
commit 5674f3936c
9 changed files with 137 additions and 91 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ class PostFrame extends EventEmitter
{
if( !( this.result instanceof Buffer ) )
{
this.result = new Buffer( this.result + "" );
this.result = Buffer.from( this.result + "" );
}
this.HTTP.response.headers["Content-Length"] = this.result.length;