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

Method isLacking

test/common/wpt.js:447–462  ·  view source on GitHub ↗

* @param {Set} requires * @returns {string|false} The config that the build is lacking, or false

(requires)

Source from the content-addressed store, hash-verified

445 * @returns {string|false} The config that the build is lacking, or false
446 */
447 isLacking(requires) {
448 const current = this.currentIntl;
449 if (requires.has('full-icu') && current !== kIntlRequirement.full) {
450 return 'full-icu';
451 }
452 if (requires.has('small-icu') && current < kIntlRequirement.small) {
453 return 'small-icu';
454 }
455 if (requires.has('crypto') && !this.hasCrypto) {
456 return 'crypto';
457 }
458 if (requires.has('inspector') && !this.hasInspector) {
459 return 'inspector';
460 }
461 return false;
462 }
463}
464
465const buildRequirements = new BuildRequirement();

Callers 1

buildQueueMethod · 0.80

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected