Skip to content

autoInject doesn't unpack results into the callback #1099

@steverobb

Description

@steverobb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions