You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Going through C++ exceptions code, there is this smelly looking hack in jsifier.js:
// functionStubfunctionfunctionStubHandler(item){// special logicif(item.ident.startsWith('___cxa_find_matching_catch_')){varnum=+item.ident.split('_').slice(-1)[0];LibraryManager.library[item.ident.substr(1)]=function(){return___cxa_find_matching_catch.apply(null,arguments);};}
I wonder what that is for? If I comment that out, things at least superficially seem to work fine. That code seems to somehow redirect e.g. a function ___cxa_find_matching_catch_1 to just ___cxa_find_matching_catch?
The code has a line var num = +item.ident.split('_').slice(-1)[0];, but num is not actually used anywhere.
Is this something to do with an infinite amount of redirects from ___cxa_find_matching_catch_<integer> each to ___cxa_find_matching_catch?
It would be good for jsifier.js to be generic without needing to encode actual functionality specific bits in there. I wonder if that is something old that is no longer needed? Can we get rid of this block?
Activity
More exception deps fixes, also fix emscripten-core#8046
More exception deps fixes, also fix emscripten-core#8046
juj commentedon Feb 9, 2019
Removed the above block in #8040, and replaced it with a fixed number number of redirections.
More exception deps fixes, also fix emscripten-core#8046
More exception deps fixes, also fix emscripten-core#8046
More exception deps fixes, also fix emscripten-core#8046
More exception deps fixes, also fix emscripten-core#8046
More exception deps fixes, also fix emscripten-core#8046
More exception deps fixes, also fix emscripten-core#8046
Exception handling support to MINIMAL_RUNTIME (emscripten-core#8040)