Skip to content

Commit 95784cf

Browse files
authored
[SjLj] Add ChangeLog for Wasm SjLj support (#16175)
1 parent d37a121 commit 95784cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ChangeLog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ See docs/process.md for more on how version tagging works.
3636
- The `--bind` flag used to enable embind has been deprecated in favor of
3737
`-lembind`. The semantics have not changed and the old flag continues to
3838
work. (#16087)
39+
- New setjmp/longjmp support using Wasm EH instructions is added, which is
40+
faster and reduces code size. You need a browser that supports Wasm EH spec to
41+
use it. The new SjLj support is enabled by `-sSUPPORT_LONGJMP=wasm`. This can
42+
be used with Wasm exception support (`-fwasm-exceptions`), but not with
43+
Emscripten exception support (`-fexceptions` or
44+
`-sDISABLE_EXCEPTION_CATCHING=0`). When using Wasm EH with Wasm SjLj, there is
45+
one restriction that you cannot directly call `setjmp` within a `catch`
46+
clause. (Calling another function that calls `setjmp` is fine.)
47+
(#14976 and #16072)
3948

4049
3.1.2 - 20/01/2022
4150
------------------

0 commit comments

Comments
 (0)