deno_core
deno_core copied to clipboard
ModuleInfo should have a notion of module visibility
At this point we have 3 distinct types of modules that are executed in deno_core
:
-
internal
modules - these areext:core/mod.js
andext:core/ops
- these modules are provided automatically bydeno_core
and have to be accessible only to otherext:*
modules -
ext
modules - these are all modules defined usingextension!
macro - these modules have to be accessible only by native code or otherext:*
modules - user code modules - these are all the modules executed after the runtime has bootstrapped - these modules mustn't have access to
internal
orext
modules. (Maybe there are situation where this is needed - in such case, there should be a method to expose them)