Skip to content

Commit 426bd4e

Browse files
authored
Merge pull request #145 from acomerlatto/main
fix(native-connect-hook): adjust scope of `systemModule` declaration
2 parents ae338c5 + ad465d0 commit 426bd4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

native-connect-hook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
? 4
3030
: 2048; // Linux/Android
3131

32-
let fcntl, send, recv;
32+
let systemModule, fcntl, send, recv;
3333
try {
34-
const systemModule = Process.findModuleByName('libc.so') ?? // Android
34+
systemModule = Process.findModuleByName('libc.so') ?? // Android
3535
Process.findModuleByName('libc.so.6') ?? // Linux
3636
Process.findModuleByName('libsystem_kernel.dylib'); // iOS
3737

0 commit comments

Comments
 (0)