Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptModule.h

Issue 2781713003: Enable module scripts in ScriptLoader (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/ScriptModule.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h
index 43a73d512909eafb00ce23a834657dcc0de39fdb..ce0e96b9ccc3758dfa0d1d156a7390d1a62c56ca 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h
@@ -16,6 +16,8 @@
namespace blink {
+class ModuleScript;
+
// ScriptModule wraps a handle to a v8::Module for use in core.
//
// Using ScriptModules needs a ScriptState and its scope to operate in. You
@@ -40,7 +42,7 @@ class CORE_EXPORT ScriptModule final {
// Returns exception, if any.
ScriptValue Instantiate(ScriptState*);
- void Evaluate(ScriptState*);
+ static void Evaluate(ScriptState*, const ModuleScript*);
Vector<String> ModuleRequests(ScriptState*);

Powered by Google App Engine
This is Rietveld 408576698