Is WebAssembly safer than JavaScript?
It runs in the same browser sandbox with a memory model that limits what a module can reach, which is a solid baseline. But its binary format is harder to audit than JavaScript, so malicious logic can hide more easily, and memory bugs from the source language can persist. Safer in some respects, not universally.