Just started trying to port gamekit to emscripten. Beyond other problems I struggled on swig generated lua-layer which threw a for me cryptic “trapped”-exception in the ‘SWIG_Lua_namespace_register’-function. To make the long story short. Swig 2.0.11 created invalid