adetaylor/emscripten — comment on commit 838bddab53e9e4180498183e7990e586f12cacf6
File: src/preamble.js line 450
By ehsan:

If you name the functions _cxa_find_matching_catch and _cxa_does_inherit on the library objects, they should be picked up when needed. Also, make sure that you would add the second function as a dependency of the first one, like this:

```javascript
// ...
_cxa_find_matching_catch_deps: ['_cxa_does_inherit']
_cxa_find_matching_catch: function(thrown, throwntype, typeArray) {
// ...
},
```