Advantages: Are there any? Honest question, I don’t know… performance maybe, assuming the compiler does a good job? 
Disadvantages: It’s an entire research project in which a PS runtime would need to be written with GC, etc. FFI/interactions with normal JS would need to be figured out again I assume. Only supported by more modern browsers, rather than any ES5 browser like it currently is (actually I think the compiler generated code is fine for ES3 even).
“Compiler doing a good job” is a big if too. We could do much better in JS yet even.