* Check if sandboxing is enabled * This checks the user's enabled setting, platform support, and enabledPlatforms restriction
()
| 530 | * This checks the user's enabled setting, platform support, and enabledPlatforms restriction |
| 531 | */ |
| 532 | function isSandboxingEnabled(): boolean { |
| 533 | if (!isSupportedPlatform()) { |
| 534 | return false |
| 535 | } |
| 536 | |
| 537 | if (checkDependencies().errors.length > 0) { |
| 538 | return false |
| 539 | } |
| 540 | |
| 541 | // Check if current platform is in the enabledPlatforms list (undocumented setting) |
| 542 | if (!isPlatformInEnabledList()) { |
| 543 | return false |
| 544 | } |
| 545 | |
| 546 | return getSandboxEnabledSetting() |
| 547 | } |
| 548 | |
| 549 | /** |
| 550 | * If the user explicitly enabled sandbox (sandbox.enabled: true in settings) |
no test coverage detected