( platform: NodeJS.Platform = process.platform, arch: string = process.arch )
| 72 | } |
| 73 | |
| 74 | export function getNativePackageCandidates( |
| 75 | platform: NodeJS.Platform = process.platform, |
| 76 | arch: string = process.arch |
| 77 | ): string[] { |
| 78 | const platformArch = `${platform}-${arch}` |
| 79 | return NATIVE_PACKAGES[platformArch] || [] |
| 80 | } |
| 81 | |
| 82 | export function loadNative(): NativeBinding { |
| 83 | if (nativeBinding !== undefined) { |
no outgoing calls
no test coverage detected