emscripten-core / emscripten-core/emscripten

Should the asyncify `wakeUp` callback be wrapped automatically in `callUserCallback`

Open
#26,093 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

As of today if I do something like:

```
Asyncify.handleSleep((wakeUp) => setTimeout(() => wakeUp(42), 0);
```

then the program continuation after the wakeup will not be correctly wrapped in `callUserCallback` which means that things like `exit()` will not work correctly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.