async icon indicating copy to clipboard operation
async copied to clipboard

ie8 parallel results array undefined

Open mattydoincode opened this issue 12 years ago • 6 comments

Howdy friends,

I believe there's a bug with parallel. Getting the results array works great in modern browsers, and fails miserably in ie8. I'm not exactly sure why, though I will investigate. Here's a code example to try:

async.parallel([
    function(callback) {
        callback(null, { a: 'b' });
    }
], function(err, results) {
        var i = results; //results is an empty array in ie8!!
});

Thanks!

mattydoincode avatar Mar 28 '14 16:03 mattydoincode

Why was this issue closed? Am I using the issue system incorrectly? Is it not a bug?

mattydoincode avatar Mar 28 '14 18:03 mattydoincode

I think your issue got caught in a bulk close. Have you tried with the just-published version 0.4.0? It may have already been fixed.

aearly avatar Mar 28 '14 18:03 aearly

@mattydoincode thanks for reporting, if you find it still fails with 0.4.0 we'll re-open this :)

caolan avatar Mar 28 '14 18:03 caolan

@caolan thanks for following up.

Just pulled the code and still getting the same results. I'll go digging. Maybe you can point me in the right direction?

mattydoincode avatar Mar 28 '14 18:03 mattydoincode

@caolan

After some digging, found out that in a separate part of my code, a library was defining Array.prototype.map if map was undefined (as in, if the browser is IE8 etc). This map wasn't compatible with the _map function you use in async. I was able to rectify the problem.

Feel free to close the issue! Thanks.

mattydoincode avatar Mar 28 '14 18:03 mattydoincode

Glad you found the cause @mattydoincode :)

caolan avatar Mar 30 '14 11:03 caolan