It doesn't: but it helps with the stuff around it. The article talks about 3 locations for bugs
1) jitted javascript code with subtle bugs due to logic errors in the compiler (Rust's memory safety can't really help here)
2) Bugs in surrounding utility code and the interpreter (Rust can help, but running without a JIT entirely is too slow. Still, it's part of the attack surface either way)
3) Bugs in the sandbox implementation which helps mitigate bugs of the first kind (Rust can help)
AFAIK the main objection raised here is the article dismisses moving to a memory safe language because it doesn't help with 1, but then discusses 2 and 3 where in fact the issues are exactly where memory safety can help.
1) jitted javascript code with subtle bugs due to logic errors in the compiler (Rust's memory safety can't really help here)
2) Bugs in surrounding utility code and the interpreter (Rust can help, but running without a JIT entirely is too slow. Still, it's part of the attack surface either way)
3) Bugs in the sandbox implementation which helps mitigate bugs of the first kind (Rust can help)
AFAIK the main objection raised here is the article dismisses moving to a memory safe language because it doesn't help with 1, but then discusses 2 and 3 where in fact the issues are exactly where memory safety can help.