(n)
| 131 | } |
| 132 | |
| 133 | function rejectChain(n) { |
| 134 | return function(deferred) { |
| 135 | var p = Promise.reject({}), i = 0; |
| 136 | for(;i < n; i++) { |
| 137 | p = p.then(null, rethrow); |
| 138 | } |
| 139 | |
| 140 | p.then(null, function() { |
| 141 | deferred.resolve(); |
| 142 | }); |
| 143 | }; |
| 144 | } |
| 145 | |
| 146 | function rejectChainSparse(n) { |
| 147 | return function(deferred) { |
no outgoing calls
no test coverage detected
searching dependent graphs…