Create bare-bones ScriptModule class
Provides a ScriptModule wrapper around v8::Module, as
well as primordial forms of the three basic operations
on modules:
- compile(), a static method which takes a string and
returns a ScriptModule
- instantiate(), which "links" a module with its dependencies
(the initial implementation does no actual linking)
- evaluate(), which runs the module (and its dependencies;
naturally this version doesn't do the latter)
Landing this in its early state makes it easier for others
working on <script type="module"> support to make progress
on other CLs, many of which will interact with this class
BUG=594639
Review-Url: https://codereview.chromium.org/2566513002
Cr-Commit-Position: refs/heads/master@{#443112}
5 files changed