Interesting. It generates some odd looking JS with a boatload of global vars. https://forum.nim-lang.org/js/forum.js?t=2020-08-2420%3A22%3...
Could definitely use a lot of minification.
If you wanted to integrate some Nim code in an existing JS application and your existing application already defines the name "raiseException", or "unhandledException", or "framePtr", or "lastJSError", or ... that's going to be a problem.
https://nim-lang.org/docs/backends.html#backends-the-javascr...
It appears that the way it does that creates a lot of global vars and functions.