Skip to content

Commit

Permalink
test: add test for listen callback runtime binding
Browse files Browse the repository at this point in the history
PR-URL: #35657
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
adinhtdsibm authored and BethGriggs committed Dec 15, 2020
1 parent 985efdf commit f535d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-http-pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const server = http.createServer((req, res) => {
});

server.listen(0, function() {
// Anonymous function rather than arrow function to test `this` value.
assert.strictEqual(this, server);
const req = http.request({
port: this.address().port,
path: '/',
Expand Down

0 comments on commit f535d62

Please sign in to comment.