(platformName: string, platform: Platform)
| 56 | } |
| 57 | |
| 58 | setPlatform(platformName: string, platform: Platform) { |
| 59 | if (this.platform != null) { |
| 60 | if (!(env().getBool('IS_TEST') || env().getBool('PROD'))) { |
| 61 | console.warn( |
| 62 | `Platform ${this.platformName} has already been set. ` + |
| 63 | `Overwriting the platform with ${platformName}.`); |
| 64 | } |
| 65 | } |
| 66 | this.platformName = platformName; |
| 67 | this.platform = platform; |
| 68 | } |
| 69 | |
| 70 | registerFlag( |
| 71 | flagName: string, evaluationFn: FlagEvaluationFn, |
no test coverage detected