emscripten-core / emscripten-core/emscripten
Unwind error in game
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Please include the following in your bug report:
**Version of emscripten/emsdk:**
3.1
My simple game is throwing:
```
Uncaught (in promise) unwind
```
There is a code in generate .js file:
```
if (simulateInfiniteLoop) {
throw "unwind"
}
```

Demo:
https://nativium.s3.amazonaws.com/game/1.0.0/index.html
This only happen when i start the game from function `Game.Core.Initialize(640, 640, 1);`. If i let it from `main` function, no error happen.
What im doing wrong?
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.