Commit 8551146
authored
[embind] Update exceptionLast in _emval_throw (#26276)
When `_emval_throw` throws an instance of C++ exception in Emscripten EH
mode, it needs to update `exceptionLast` accordingly, as we do in
`__cxa_throw` and `__cxa_rethrow` in `src/lib/libexceptions.js`:
https://github.com/emscripten-core/emscripten/blob/2d257177915c49c807a3e03d6f404173bb4e5e72/src/lib/libexceptions.js#L100
Here we can't use `storeException` because we are not creating a C++
exception from scratch; we are throwing an already created C++
exception.
Fixes #26213.1 parent 7e9b3ba commit 8551146
File tree
4 files changed
+69
-1
lines changed- src/lib
- test
- embind
4 files changed
+69
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
396 | 400 | | |
397 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
398 | 426 | | |
399 | 427 | | |
400 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7741 | 7741 | | |
7742 | 7742 | | |
7743 | 7743 | | |
| 7744 | + | |
| 7745 | + | |
| 7746 | + | |
| 7747 | + | |
7744 | 7748 | | |
7745 | 7749 | | |
7746 | 7750 | | |
| |||
0 commit comments