diff options
author | Caolan McMahon <caolan.mcmahon@gmail.com> | 2014-03-28 15:12:59 +0000 |
---|---|---|
committer | Caolan McMahon <caolan.mcmahon@gmail.com> | 2014-03-28 15:12:59 +0000 |
commit | 0eb81937b2409c1dfd4c128b14b4812d56ce8363 (patch) | |
tree | 5d9de8a198b097a19b2540cf1f3f2008a73f13a8 /README.md | |
parent | 9f57a352bbaba436db11f8885e460eaa81d97b75 (diff) | |
parent | 93c536b3abef27d08f4f6dc89edb93e338e3656d (diff) | |
download | async-0eb81937b2409c1dfd4c128b14b4812d56ce8363.tar.gz |
Merge pull request #391 from kvz/patch-1
Passing an object to .series() may lead to unexpected behavior
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -639,6 +639,14 @@ run as a function, and the results will be passed to the final `callback` as an instead of an array. This can be a more readable way of handling results from [`series`](#series). +**Note** that while many implementations preserve the order of object properties, the +[ECMAScript Language Specifcation](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6) +explicitly states that + +> The mechanics and order of enumerating the properties is not specified. + +So if you rely on the order in which your series of functions are executed, and want +this to work on all platforms, consider using an array. __Arguments__ |