Skip to content

Commit ae731ec

Browse files
bnoordhuisrvagg
authored andcommitted
test: don't use arguments.callee
Fix a strict mode violation that made the test fail to run. It appears to be a regression that was introduced in commit f29762f ("test: enable linting for tests") which I was the sole reviewer of, so mea culpa. PR-URL: #2022 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
1 parent 70d1f32 commit ae731ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/pummel/test-http-many-keep-alive-connections.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ server.once('connection', function(c) {
1919
connection = c;
2020
});
2121

22-
server.listen(common.PORT, function() {
23-
var callee = arguments.callee;
22+
server.listen(common.PORT, function connect() {
2423
var request = http.get({
2524
port: common.PORT,
2625
path: '/',
@@ -30,7 +29,7 @@ server.listen(common.PORT, function() {
3029
}, function(res) {
3130
res.on('end', function() {
3231
if (++responses < expected) {
33-
callee();
32+
connect();
3433
} else {
3534
server.close();
3635
}

0 commit comments

Comments
 (0)