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 f175cd9c670962af74f915049f637d9ce2e2ef89..e32e152d1f2b3ace553003977083efd02fb6fd02 100644 |
--- a/third_party/WebKit/Source/core/dom/ModuleScript.cpp |
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.cpp |
@@ -4,6 +4,10 @@ |
#include "core/dom/ModuleScript.h" |
+#include "bindings/core/v8/V8Binding.h" |
+#include "bindings/core/v8/V8ThrowException.h" |
+#include "core/dom/Modulator.h" |
hiroshige
2017/04/13 23:55:19
TODO: remove these includes as they are not needed
|
+ |
namespace blink { |
void ModuleScript::SetInstantiationError(v8::Isolate* isolate, |
@@ -40,8 +44,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 { |