Hi All,
We made a update to 1.39.6 recently . Previously we were on 1.38.34 and using -s DISABLE_EXCEPTION_CATCHING=2 -s EXCEPTION_CATCHING_WHITELIST="@whitelist.txt", and it was working fine.
But in latest upstream it seems to be stopped working.
I wrote a small program to verify that, it is not working with this program as well.
#include <iostream>
#include "emscripten.h"
using namespace std;
extern "C"
void fun() {
try {
throw 10000;
} catch(...) {
cout<<"hello"<<endl;
}
}
int main () {
fun();
return 0;
}
I run this command
emcc test.cpp -s DISABLE_EXCEPTION_CATCHING=2 -s EXCEPTION_CATCHING_WHITELIST=["_fun"] -o test.html
with 1.38.34 it's working fine and printing
hello, but with 1.39.6 function is not catching exception and "
uncaught exception" is printing on console.
Regards,