(n)
| 118 | } |
| 119 | |
| 120 | function resolveChainSparse(n) { |
| 121 | return function(deferred) { |
| 122 | var p = Promise.resolve({}), i = 1; |
| 123 | for(;i < n; i++) { |
| 124 | p = p.then(null); |
| 125 | } |
| 126 | |
| 127 | p.then(identity).then(function() { |
| 128 | deferred.resolve(); |
| 129 | }); |
| 130 | }; |
| 131 | } |
| 132 | |
| 133 | function rejectChain(n) { |
| 134 | return function(deferred) { |
no outgoing calls
no test coverage detected
searching dependent graphs…