From ae731ec0fad423f4333d8194630ecd21a322739b Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 19 Jun 2015 20:45:30 +0200 Subject: [PATCH] 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: https://github.com/nodejs/io.js/pull/2022 Reviewed-By: Rod Vagg Reviewed-By: Trevor Norris --- test/pummel/test-http-many-keep-alive-connections.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/pummel/test-http-many-keep-alive-connections.js b/test/pummel/test-http-many-keep-alive-connections.js index d90d4d97531095..293c6ab748e9c2 100644 --- a/test/pummel/test-http-many-keep-alive-connections.js +++ b/test/pummel/test-http-many-keep-alive-connections.js @@ -19,8 +19,7 @@ server.once('connection', function(c) { connection = c; }); -server.listen(common.PORT, function() { - var callee = arguments.callee; +server.listen(common.PORT, function connect() { var request = http.get({ port: common.PORT, path: '/', @@ -30,7 +29,7 @@ server.listen(common.PORT, function() { }, function(res) { res.on('end', function() { if (++responses < expected) { - callee(); + connect(); } else { server.close(); }