Re:Show HN: Sandboxing untrusted code using WebAssembly
by mavdol04 on Tuesday February 03, 2026 @12:49PM
(#46874359)
yeah, the previous example was quite basic. I will write a complete example for that, but here is how you can run dynamic code:
Hope that helps!
[ Parent
| on HN ]
Re:Show HN: Sandboxing untrusted code using WebAssembly
by zachrip on Thursday February 05, 2026 @08:16AM
(#46899297)
Is the code in the eval also turned into wasm first then? Does this work as a JIT for wasm?
Re:Show HN: Sandboxing untrusted code using WebAssembly
by mavdol04 on Thursday February 05, 2026 @06:40PM
(#46907046)
It actually works a bit differently. The eval is executed by the interpreter running inside the isolated wasm sandbox (StarlingMonkey). You can think of it as each sandbox having its own dedicated JavaScript engine.