Index: third_party/WebKit/Source/core/dom/ModuleScript.h |
diff --git a/third_party/WebKit/Source/core/dom/ModuleScript.h b/third_party/WebKit/Source/core/dom/ModuleScript.h |
index 5efe745b3db767df8531fd460c6ba0047e8e33c9..4e94f34c3560416a05ebe6bfdd65401ecf64b523 100644 |
--- a/third_party/WebKit/Source/core/dom/ModuleScript.h |
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.h |
@@ -6,6 +6,7 @@ |
#define ModuleScript_h |
#include "bindings/core/v8/ScriptModule.h" |
+#include "bindings/core/v8/ScriptValue.h" |
#include "core/CoreExport.h" |
#include "platform/heap/Handle.h" |
#include "platform/loader/fetch/ResourceLoaderOptions.h" |
@@ -41,16 +42,19 @@ class CORE_EXPORT ModuleScript final |
void clearRecord() { m_record = ScriptModule(); } |
const KURL& baseURL() const { return m_baseURL; } |
+ ModuleInstantiationState instantiationState() const { |
+ return m_instantiationState; |
+ } |
+ |
+ void setInstantiationSuccess(); |
+ void setInstantiationError(ScriptValue); |
+ |
ParserDisposition parserState() const { return m_parserState; } |
WebURLRequest::FetchCredentialsMode credentialsMode() const { |
return m_credentialsMode; |
} |
const String& nonce() const { return m_nonce; } |
- ModuleInstantiationState instantiationState() const { |
- return m_instantiationState; |
- } |
- |
DECLARE_TRACE(); |
private: |
@@ -81,7 +85,7 @@ class CORE_EXPORT ModuleScript final |
ModuleInstantiationState::Uninstantiated; |
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-module-script-instantiation-error |
- // TODO(kouhei): Add a corresponding member. |
+ ScriptValue m_instantiationError; |
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-module-script-nonce |
const String m_nonce; |