Skip to content

Commit 045f991

Browse files
committed
fix: Assert platform and arch
1 parent 67d2140 commit 045f991

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/private.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import assert from 'node:assert'
2-
2+
import { platform, arch } from 'node:process'
33
import koffi from './stubs/koffi.cjs'
44
export { koffi }
55

6+
assert(platform === 'win32' && arch === 'x64', 'This library can only be used on Windows x64 platforms.')
7+
68
export interface WinDll extends Disposable {
79
name: string
810
lib: koffi.IKoffiLib

0 commit comments

Comments
 (0)