1
0
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:
Bryan Roe
2021-02-10 00:44:30 -08:00
parent 2b191470e8
commit f932ef8d89
2 changed files with 39 additions and 1 deletions

View File

@@ -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
{