On Fri, 21 Aug 2020 12:46:18 -0700
Alon Zakai <
alon...@gmail.com> wrote:
> I believe this is from 1.39.16, the changelog entry (
>
https://github.com/emscripten-core/emscripten/blob/master/ChangeLog.md#13916-05152020)
> says
>
> ====
> Change the factory function created by using the MODULARIZE build option to
> return a Promise instead of the module instance. That is, beforehand
>
> Module()
>
> would return an instance (which was perhaps not ready yet if startup was
> async). In the new model, that returns a Promise which you can do .then or
> await on to get notified when the instance is ready, and the callback
> receives the instance. Note that both before and after this change doing
> Module() creates and runs an instance, so the only change is the return
> value from that call. This fixes some long-standing bugs with that option
> which have been reported multiple times, but is a breaking change - sorry
> about that. To reduce the risk of confusing breakage, in a build with
> ASSERTIONS we will show a clear warning on common errors. For more, see
> detailed examples for the current usage in src/settings.js on MODULARIZE.
> (#10697)
> ====
>
> Thanks Shlomi, good to mention this here as it might help others (I don't
> think we mentioned it in the mailing list before).
>
something sucks. Take Microsoft Word for example.