* Ensure that this ModuleJob is moving towards the required phase * (does not necessarily mean it is ready at that phase - run does that) * @param {number} phase
(phase, requestType)
| 192 | * @param {number} phase |
| 193 | */ |
| 194 | ensurePhase(phase, requestType) { |
| 195 | if (this.phase < phase) { |
| 196 | this.phase = phase; |
| 197 | this.linked = this.link(requestType); |
| 198 | if (isPromise(this.linked)) { |
| 199 | PromisePrototypeThen(this.linked, undefined, noop); |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | shouldLinkModule(phase) { |
| 205 | return phase >= kDeferPhase; |
no test coverage detected