3 ms·
> Having a JS bridge just seems like a clunky workaround that you have to live with. It's 100 lines of code that you write once and never touch again. Not espe
by danielheath 6y ago
> Having a JS bridge just seems like a clunky workaround that you have to live with.
It's 100 lines of code that you write once and never touch again. Not especially hard to live with VS having a fixed spec that can't evolve over time.
> JavaScript is already sandboxed and can access only what you allow it to. Why have a sandbox within a sandbox?
Javascript can access only what the user grants it access to. Within that set, WebAssembly can access only what the site author grants it access to.
There are quite a few good reasons to want nesting sandboxes. Hell, that's my favorite thing about Lua (a language I would otherwise avoid).