Ironically, many of the arguments against the use of JS as bytecode just got transplanted into arguments against WASM, but one common argument against WASM is "why do we need this when we can already compile to javascript?"
[0]https://news.ycombinator.com/item?id=5227274
[1]https://www.hanselman.com/blog/javascript-is-web-assembly-la...
[2]https://news.ycombinator.com/item?id=5762183
[3]https://news.ycombinator.com/item?id=3708919
[4]https://blog.izs.me/2011/09/javascript-is-not-web-assembly/
Serious question.
I read it often, but besides minified JS, most "to js compilers" try to emit readable JS and I didn't have the impression that the goal of bytecode was to be readable.
> The Hermes JavaScript engine statically compiles JS to bytecode. https://github.com/facebook/hermes