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

autoInject doesn't unpack results into the callback #1099

Closed
steverobb opened this issue Apr 5, 2016 · 2 comments
Closed

autoInject doesn't unpack results into the callback #1099

steverobb opened this issue Apr 5, 2016 · 2 comments

Comments

@steverobb
Copy link

The original version of autoInject unpacked arguments into the final callback. The current version does not do this:

async.autoInject({
    a: function(cb) { cb(null, 1); },
    b: function(cb) { cb(null, 2); }
}, function(err, a, b) {
    console.log('a: ' + a + ' b: ' + b);
});

Expected: a: 1, b: 2
Actual: a: [object Object], b: undefined

The documentation still refers to the original behaviour.

@steverobb
Copy link
Author

To be clear, I see this as an oversight made during the porting of the code, not a documentation error.

@aearly
Copy link
Collaborator

aearly commented Apr 7, 2016

Closed by #1100

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