(value)
| 94 | // can be exercised on Windows). |
| 95 | const _realPlatform = Object.getOwnPropertyDescriptor(process, 'platform'); |
| 96 | function setPlatform(value) { |
| 97 | Object.defineProperty(process, 'platform', { value: value, configurable: true }); |
| 98 | } |
| 99 | function restorePlatform() { |
| 100 | if (_realPlatform) Object.defineProperty(process, 'platform', _realPlatform); |
| 101 | } |
no outgoing calls
no test coverage detected