DescriptionCreate 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}
Committed: https://chromium.googlesource.com/chromium/src/+/57c86c65d60a0e5da917fa3cb6c6b374821b7984
Patch Set 1 #Patch Set 2 : Add instantiate and evaluate methods #Patch Set 3 : Rebased #Patch Set 4 : Add more TODOs #
Total comments: 9
Patch Set 5 : haraken comments #
Total comments: 4
Patch Set 6 : Update copyrights #
Messages
Total messages: 20 (10 generated)
|