logoalt Hacker News

insanitybityesterday at 10:33 PM1 replyview on HN

Yes, but that's actually a huge win. I can't know what a package needs to do at install time - the dev knows that. But I know what my tests and program need to do at runtime because it's my job to understand those things.

The dev has to be responsible for ensuring that their build scripts are safe, I need to be responsible for ensuring that my runtime is safe.

It'd be great to have more tools for untrusting libraries (iframes are awesome for this on the frontend) but this is still a massive win.


Replies

tentacleunotoday at 7:53 AM

v8 does have a sandbox feature for running untrusted scripts, and it's quite good. There's also Node's VM module.