We did that in https://pspdfkit.com/blog/2017/webassembly-a-new-hope/ - WebAssembly is really fast, the different is less than you'd expect.
They just recently shipped it on Linux with V8 v6.8, but the Windows implementation is still a work in progress.