()
| 48 | const SLEEP_WORD = new Int32Array(new SharedArrayBuffer(4)); |
| 49 | |
| 50 | function getPlatform() { |
| 51 | switch (process.platform) { |
| 52 | case 'linux': return 'linux'; |
| 53 | case 'darwin': return 'darwin'; |
| 54 | case 'win32': return 'windows'; |
| 55 | default: throw new Error(`Unsupported platform: ${process.platform}`); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | function getArch() { |
| 60 | switch (process.arch) { |