We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 320fbd7 commit 3ed3560Copy full SHA for 3ed3560
.eslintrc.yml
@@ -4,7 +4,7 @@ extends: 'eslint:recommended'
4
globals:
5
Promise: false
6
parserOptions:
7
- ecmaVersion: 6
+ ecmaVersion: 5
8
rules:
9
indent: [ 2, 2, { SwitchCase: 1 } ]
10
no-trailing-spaces: 2
lib/util.js
@@ -35,11 +35,13 @@ function objectToPromise(obj) {
35
}
36
37
return promises.length
38
- ? Promise.all(promises).then(() => results)
+ ? Promise.all(promises).then(function() { return results; })
39
: Promise.resolve(obj);
40
41
function defer(p, _key) {
42
- p = p.then((res) => { results[_key] = res; });
+ p = p.then(function (res) {
43
+ results[_key] = res;
44
+ });
45
promises.push(p);
46
47
0 commit comments