()
| 97 | Object.defineProperty(process, 'platform', { value: value, configurable: true }); |
| 98 | } |
| 99 | function restorePlatform() { |
| 100 | if (_realPlatform) Object.defineProperty(process, 'platform', _realPlatform); |
| 101 | } |
| 102 | |
| 103 | // Node's `path` binds its separator to the real host OS at load time — |
| 104 | // overriding process.platform does NOT make path.join emit backslashes on a |