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>
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: '/',
}, function(res) {
res.on('end', function() {
if (++responses < expected) {
- callee();
+ connect();
} else {
server.close();
}