Re:A Secure Runtime for JavaScript and TypeScript Built with...
by mahmoudimus on Monday July 08, 2019 @02:27PM
(#20385358)
This looks interesting. How did you lose the gist? You just can't find it on https://gist.github.com/?
I don't remember the exact API, but basically an es module graph is a directed graph (e.g. edges have a direction), and because there is only one entrypoint in node, we can therefore create a hierarchy of modules. From this point on, you basically start at the root with X permissions, and from there each module can reduce the permissions of modules they import (or they can reduce their own permissions, but they can't raise them after that obviously).