timoxley / functional-javascript-workshop

A functional javascript workshop. No libraries required (i.e. no underscore), just ES5.
2.06k stars 441 forks source link

Async Loops verify process maybe incorrect. #119

Open kisnows opened 9 years ago

kisnows commented 9 years ago
//I do nothing with the giving code, but it can pass the verify
function loadUsers(userIds, load, done) {
  var users = []
  for (var i = 0; i < userIds.length; i++) {
    users.push(load(userIds[i]))
  }
  return users
}

module.exports = loadUsers

qq 20150907155802

The verify process may not correct.

mdorda commented 7 years ago

Also empty function will pass the verification.

module.exports = function() {}

I suppose the same bug causes that also makes impossible to run the function using functional-javascript run program.js.