Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    const status = await Deno.permissions.revoke({ name: "run" });
    assert(status.state !== "granted")

    import * from "https://shady-site.com/this-file-cannot-run-processes.ts"


Though after that point even your own code cannot use that permission anymore.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: