summaryrefslogtreecommitdiff
path: root/test/known_issues/test-http-path-contains-unicode.js
diff options
context:
space:
mode:
authorSarath Govind K K <sarathgovind27@gmail.com>2018-11-19 11:07:23 +0530
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-11-22 05:46:06 +0100
commitc5b326a0fae1af974b6c9ebc6c745d6a5e63b95a (patch)
treea27938cac1f43c366afb78622e387c4ab4576f8a /test/known_issues/test-http-path-contains-unicode.js
parent9c7b87b9a16837c9bd3d7b6514cdee6f0933bfbc (diff)
downloadandroid-node-v8-c5b326a0fae1af974b6c9ebc6c745d6a5e63b95a.tar.gz
android-node-v8-c5b326a0fae1af974b6c9ebc6c745d6a5e63b95a.tar.bz2
android-node-v8-c5b326a0fae1af974b6c9ebc6c745d6a5e63b95a.zip
test: replcae anonymous closure with arrow function
PR-URL: https://github.com/nodejs/node/pull/24476 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test/known_issues/test-http-path-contains-unicode.js')
-rw-r--r--test/known_issues/test-http-path-contains-unicode.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/known_issues/test-http-path-contains-unicode.js b/test/known_issues/test-http-path-contains-unicode.js
index a51b072102..d899fab07c 100644
--- a/test/known_issues/test-http-path-contains-unicode.js
+++ b/test/known_issues/test-http-path-contains-unicode.js
@@ -23,9 +23,9 @@ const server = http.createServer(common.mustCall(function(req, res) {
}));
-server.listen(0, function() {
+server.listen(0, () => {
http.request({
- port: this.address().port,
+ port: server.address().port,
path: expected,
method: 'GET'
}, common.mustCall(function(res) {