> This leads to the following situation where the main program and the worker both reference the same memory, which doesn’t belong to either of them:
If only Mozilla had some technology that could deal with ownership of memory...
Seriously, if rust doesn't have an ASM.js optimized target yet, it really should.