summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolan McMahon <caolan.mcmahon@gmail.com>2014-03-28 15:12:59 +0000
committerCaolan McMahon <caolan.mcmahon@gmail.com>2014-03-28 15:12:59 +0000
commit0eb81937b2409c1dfd4c128b14b4812d56ce8363 (patch)
tree5d9de8a198b097a19b2540cf1f3f2008a73f13a8
parent9f57a352bbaba436db11f8885e460eaa81d97b75 (diff)
parent93c536b3abef27d08f4f6dc89edb93e338e3656d (diff)
downloadasync-0eb81937b2409c1dfd4c128b14b4812d56ce8363.tar.gz
Merge pull request #391 from kvz/patch-1
Passing an object to .series() may lead to unexpected behavior
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3249ed6..94cea32 100644
--- a/README.md
+++ b/README.md
@@ -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__