mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 07:43:50 +00:00
1. Fixed crash on Alpine
2. updated self-test
This commit is contained in:
@@ -400,6 +400,7 @@ int ILibDuktape_readableStream_WriteDataEx(ILibDuktape_readableStream *stream, i
|
||||
{
|
||||
if (ILibIsRunningOnChainThread(stream->chain))
|
||||
{
|
||||
duk_context *cx = stream->ctx;
|
||||
ILibDuktape_EventEmitter_SetupEmit(stream->ctx, stream->object, "data"); // [emit][this][data]
|
||||
if (streamReserved == 0)
|
||||
{
|
||||
@@ -417,7 +418,7 @@ int ILibDuktape_readableStream_WriteDataEx(ILibDuktape_readableStream *stream, i
|
||||
ILibDuktape_Process_UncaughtException(stream->ctx);
|
||||
}
|
||||
|
||||
duk_pop(stream->ctx); // ...
|
||||
duk_pop(cx); // ...
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user