()
| 38 | const SLEEP_WORD = new Int32Array(new SharedArrayBuffer(4)); |
| 39 | |
| 40 | function getPlatform() { |
| 41 | switch (process.platform) { |
| 42 | case 'linux': return 'linux'; |
| 43 | case 'darwin': return 'darwin'; |
| 44 | case 'win32': return 'windows'; |
| 45 | default: throw new Error(`Unsupported platform: ${process.platform}`); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | function getArch() { |
| 50 | switch (process.arch) { |