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,

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/6378c174-10c4-411a-b56b-7f8fcecea5d2%40googlegroups.com.

Reply via email to