| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cea90dc commit 6bf148e
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -561,6 +561,7 @@ ObjectSetPrototypeOf(Server, net.Server); | |||
| 561 | 561 | Server.prototype.close = function() { | |
| 562 | 562 | httpServerPreClose(this); | |
| 563 | 563 | ReflectApply(net.Server.prototype.close, this, arguments); | |
| 564 | + return this; | ||
| 564 | 565 | }; | |
| 565 | 566 | ||
| 566 | 567 | Server.prototype[SymbolAsyncDispose] = async function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,6 +111,7 @@ Server.prototype.setTimeout = HttpServer.prototype.setTimeout; | |||
| 111 | 111 | Server.prototype.close = function() { | |
| 112 | 112 | httpServerPreClose(this); | |
| 113 | 113 | ReflectApply(tls.Server.prototype.close, this, arguments); | |
| 114 | + return this; | ||
| 114 | 115 | }; | |
| 115 | 116 | ||
| 116 | 117 | Server.prototype[SymbolAsyncDispose] = async function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -139,4 +139,5 @@ process.on('exit', function() { | |||
| 139 | 139 | assert.match(server_response, quit); | |
| 140 | 140 | ||
| 141 | 141 | assert.strictEqual(client_got_eof, true); | |
| 142 | + assert.strictEqual(server.close(), server); | ||
| 142 | 143 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments