Closed
Description
I brought this up a while ago, but just haven't had the time to open an issue with an isolated use case and all that. But I finally did! 😄
So this is going back to the as-wasi sleep function I implemented a while back. In the meantime I just used the stub
runtime to get around allocating / freeing memory properly, but this would cause a memory leak that we do not want to have.
I went ahead and created two isolated test cases:
-
An implementation using
new ArrayBuffer
. And has the error (at runtime):~lib/rt/pure.ts:136:15: error: null
-
An implementation using
__alloc
/__free
. And has the error (at runtime):~lib/rt/tlsf.ts:279:13: error: null
Let me know if this is enough info! Thanks! 😄 👍