Skip to content

Commit 5532b9e

Browse files
authored
changelog additions [ci skip] (#11165)
1 parent 0511086 commit 5532b9e

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

ChangeLog.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,31 @@ See docs/process.md for how version tagging works.
1717

1818
Current Trunk
1919
-------------
20+
- Address Sanitizer support now includes JavaScript as well, that is, memory
21+
access of HEAP* arrays is checked by ASan. That allows errors to be found if
22+
JS glue code does something wrong like forget to shift a pointer. To use this,
23+
just build with ASan normally, `-fsanitize=address` at link (#11147).
24+
- Fix embind string conversions in multithreaded builds (#10844).
2025
- `ALLOW_MEMORY_GROWTH` used to silently disable `ABORTING_MALLOC`. It now
2126
just changes the default, which means you can pass `-s ABORTING_MALLOC=1` to
2227
override the default, which was not possible before. (If you pass the flag
2328
and don't want that behavior, stop passing the flag.) (#11131)
2429
- Change the factory function created by using the `MODULARIZE` build option to
25-
return a Promise instead of the module instance. If you use `MODULARIZE` you
26-
will need to wait on the returned Promise, using `await` or its `then`
27-
callback, to get the module instance (#10697). This fixes some long-standing
28-
bugs with that option which have been reported multiple times, but is a
29-
breaking change - sorry about that. To reduce the risk of confusing breakage,
30-
in a build with `ASSERTIONS` we will show a clear warning on common errors.
31-
For more, see detailed examples for the current usage in `src/settings.js` on
32-
`MODULARIZE`.
30+
return a Promise instead of the module instance. That is, beforehand
31+
32+
Module()
33+
34+
would return an instance (which was perhaps not ready yet if startup was
35+
async). In the new model, that returns a Promise which you can do `.then` or
36+
`await` on to get notified when the instance is ready, and the callback
37+
receives the instance. Note that both before and after this change
38+
doing `Module()` creates and runs an instance, so the only change is
39+
the return value from that call.
40+
This fixes some long-standing bugs with that option which have been reported
41+
multiple times, but is a breaking change - sorry about that. To reduce the
42+
risk of confusing breakage, in a build with `ASSERTIONS` we will show a clear
43+
warning on common errors. For more, see detailed examples for the current
44+
usage in `src/settings.js` on `MODULARIZE`. (#10697)
3345
- A new `PRINTF_LONG_DOUBLE` option allows printf to print long doubles at full
3446
float128 precision. (#11130)
3547
- `emscripten_async_queue_on_thread` has been renamed to

0 commit comments

Comments
 (0)