Skip to content

Commit 74b1e58

Browse files
committed
fix nativecall
1 parent 336bdb4 commit 74b1e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NativeCall.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ inline void objcNativeCall(napi_env env, napi_value jsThis, MethodCif *cif,
123123
if (cif->argc > 0) {
124124
for (unsigned int i = 0; i < cif->argc; i++) {
125125
shouldFree[i] = false;
126-
avalues[i] = cif->avalues[i + 2];
126+
avalues[i + 2] = cif->avalues[i + 2];
127127
cif->argTypes[i]->toNative(env, cif->argv[i], avalues[i + 2],
128128
&shouldFree[i], &shouldFreeAny);
129129
}

0 commit comments

Comments
 (0)