emscripten-core / emscripten-core/emscripten

Module.print caller should check for catch exceptions / warn about them?

Open
#14,926 2 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

I have a very strange problem.

`Module.print(text)` argument keeps accumulating, i.e.
- first call, text = `"abc"`, true message `"abc\n"`
- second call, text = `"abcdef"`, true message is `"def\n"`

In native compiled version, all is good.

I'm still in the process of debugging. It seems some buffer is not being flushed internally by Emscripten...

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.