mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-28 14:13:37 +00:00
1. Merged GC optimization for promise.js
2. Fixed crash that can occur if dgram is GC'ed during event dispatch 3. Fixed compiler warning in ILibWebClient.c 4. Updated GC for dhcp.js
This commit is contained in:
@@ -103,8 +103,9 @@ void ILibDuktape_Dgram_Socket_OnData(ILibAsyncUDPSocket_SocketModule socketModul
|
||||
duk_push_int(ptrs->ctx, bufferLength);
|
||||
duk_put_prop_string(ptrs->ctx, -2, "size");
|
||||
|
||||
duk_context *X = ptrs->ctx;
|
||||
if (duk_pcall_method(ptrs->ctx, 3) != 0) { ILibDuktape_Process_UncaughtExceptionEx(ptrs->ctx, "dgram.message() dispatch error"); }
|
||||
duk_pop(ptrs->ctx); // ...
|
||||
duk_pop(X); // ...
|
||||
}
|
||||
}
|
||||
void ILibDuktape_Dgram_Socket_OnSendOK(ILibAsyncUDPSocket_SocketModule socketModule, void *user1, void *user2)
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user