MCPcopy Index your code
hub / github.com/nodejs/node / ensurePhase

Method ensurePhase

lib/internal/modules/esm/module_job.js:194–202  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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;

Callers 1

Calls 1

linkMethod · 0.45

Tested by

no test coverage detected