* @param {Set} requires * @returns {string|false} The config that the build is lacking, or false
(requires)
| 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 | |
| 465 | const buildRequirements = new BuildRequirement(); |