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 <rod@vagg.org>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
Ben Noordhuis 2015-06-19 20:45:30 +02:00 committed by Rod Vagg
parent 70d1f32f56
commit ae731ec0fa

View File

@ -19,8 +19,7 @@ server.once('connection', function(c) {
connection = c; connection = c;
}); });
server.listen(common.PORT, function() { server.listen(common.PORT, function connect() {
var callee = arguments.callee;
var request = http.get({ var request = http.get({
port: common.PORT, port: common.PORT,
path: '/', path: '/',
@ -30,7 +29,7 @@ server.listen(common.PORT, function() {
}, function(res) { }, function(res) {
res.on('end', function() { res.on('end', function() {
if (++responses < expected) { if (++responses < expected) {
callee(); connect();
} else { } else {
server.close(); server.close();
} }