MCPcopy Create free account
hub / github.com/EvoMap/evolver / setPlatform

Function setPlatform

test/runtimePaths.test.js:96–98  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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 }

Callers 2

setupWinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected