Arguably there are already couple of popular compilers [0] for JavaScript (Babel, Closure Compiler, minifiers etc.). They just don't target native CPU assembly.
[0] Compiler is just a program that transforms code from one representation to another.
[0] Compiler is just a program that transforms code from one representation to another.
http://www.damnlol.com/the-adventures-of-technically-correct...