emscripten-core/emscripten

Asyncify: support recursive yield

Open

#10,375 opened on Feb 6, 2020

View on GitHub
 (3 comments) (5 reactions) (0 assignees)C++ (3,519 forks)batch import
good first bughelp wantedwontfix

Repository metrics

Stars
 (27,361 stars)
PR merge metrics
 (Avg merge 19d 10h) (147 merged PRs in 30d)

Description

E.g. calling emscripten_sleep() while currently suspended from another emscripten_sleep().

Today this results in an "TypeError: Asyncify.dataInfo[Asyncify.currData] is undefined" error on the second wakeup.

Contributor guide