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

Unified Diff: third_party/WebKit/Source/core/dom/ModuleScript.cpp

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: rebased 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/core/dom/ModuleScript.cpp
diff --git a/third_party/WebKit/Source/core/dom/ModuleScript.cpp b/third_party/WebKit/Source/core/dom/ModuleScript.cpp
index 9e2845e11cfaac2eddea279dfdb06a7ecd3826fc..c21d36a34209e85b657bfb79d858bfce8512e6c8 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.cpp
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.cpp
@@ -58,8 +58,10 @@ bool ModuleScript::CheckMIMETypeBeforeRunScript(Document* context_document,
}
void ModuleScript::RunScript(LocalFrame* frame, const SecurityOrigin*) const {
- // TODO(hiroshige): Implement this once Modulator::ExecuteModule() is landed.
- NOTREACHED();
+ fprintf(stderr, "ModuleScript: isNull=%d state=%d\n", record_.IsNull(),
+ InstantiationState());
+
+ settings_object_->ExecuteModule(this);
}
String ModuleScript::InlineSourceTextForCSP() const {
« no previous file with comments | « third_party/WebKit/Source/core/dom/ModuleScript.h ('k') | third_party/WebKit/Source/core/dom/PendingScript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698