Description[modules] Expand API to allow linking and use it in d8
This patch gives the ability for the embedder to ask for the
module requests of a module, and to pass a ResolveCallback
into Module::Instantiate().
In d8, I've implemented a simple module_map that's used
along with this API to allow loading, compiling, instantiating,
and evaluating a whole tree of modules.
No path resolution is yet implemented, meaning that all
import paths are relative to whatever directory d8 runs
in. And no imports are linked to the exports of the
requested module.
BUG=v8:1569
Committed: https://crrev.com/cf127e81449f0bc4d09368a376623fe3743094a7
Cr-Commit-Position: refs/heads/master@{#39569}
Patch Set 1 #Patch Set 2 : Lots of changes #Patch Set 3 : Change return value of FetchModuleTree #
Total comments: 12
Patch Set 4 : Review comments #Patch Set 5 : Add some cctests #Patch Set 6 : Use StrictEquals, remove check for bad instantiation behavior #
Messages
Total messages: 21 (14 generated)
|