tc39 / proposal-compartments

Compartmentalization of host behavior hooks for JS
MIT License
122 stars 10 forks source link

Transporting metadata from importHook (loadHook) to importMetaHook #43

Closed kriskowal closed 2 years ago

kriskowal commented 3 years ago

The loader does not need to populate import.meta if the source text never evaluates an import.meta expression. The information needed to populate import.meta is a byproduct of running the loader hook, and may contain values like the request URL or response URL.

Posted on behalf of @bmeck

Jack-Works commented 2 years ago

Already solved in the current design