Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vasync should validate inputs #2

Closed
mcavage opened this issue Jun 25, 2012 · 1 comment
Closed

vasync should validate inputs #2

mcavage opened this issue Jun 25, 2012 · 1 comment

Comments

@mcavage
Copy link

mcavage commented Jun 25, 2012

This took a while to track down:

vasync.forEachParallel({
    func: function (_, cb) { cb() },
    input: [1,2,3]
TypeError: Cannot call method 'map' of undefined
        at Object.forEachParallel (/home/mark/work/muskie/node_modules/vasync/lib/vasync.js:95:25)

Note input, not inputs.

@mcavage
Copy link
Author

mcavage commented Jun 25, 2012

And by the title of this bug, I mean "validate arguments are func and inputs". I just realized this was overloaded :\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants