Current version of unicorn used by ret is a hacked-together version based on some tweaks in Unicorn.js. Soon TCI support will be merged into upstream Unicorn (https://github.com/unicorn-engine/unicorn/pull/2145) and with some tweaks it should be able to run in emscripten.