Except it's not a browser which never has file access, db access etc.... A MITM download in the browser affects a few users. A MITM download in Deno effects all users.
Let me tell you about IndexedDB and the File System API :)
Jokes aside, though, doesn't the MITM only affect users who run the MITM'd script, just like in the browser it only affects users who visit a MITM'd site?
Re:Deno Is a Browser for Code
by PudgePacket on Friday May 29, 2020 @11:04AM
(#23350753)
... Just like every other software dependency system ever.
That said, sounds like it's something they're thinking about:
> It is also hard to break down those permissions, to say “this code can do this, but this other code over here can’t” or when code prompts to escalate privileges where is that code coming from. Hopefully we can figure out an easy to use mechanism coupled with something that would be effective and performant at runtime to try to solve those challenges.