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

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

Issue 2823803003: [ES6 modules] Introduce ModuleTreeLinker (Closed)
Patch Set: 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.h
diff --git a/third_party/WebKit/Source/core/dom/ModuleScript.h b/third_party/WebKit/Source/core/dom/ModuleScript.h
index 17cec9d0fc62b5659c4cf828a80a3e9d91022405..f33417973291c05e410a8cb418bb2b368a32035e 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.h
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.h
@@ -43,15 +43,18 @@ class CORE_EXPORT ModuleScript final : public Script, public TraceWrapperBase {
~ModuleScript() override = default;
ScriptModule& Record() { return record_; }
- void ClearRecord() { record_ = ScriptModule(); }
const KURL& BaseURL() const { return base_url_; }
ModuleInstantiationState InstantiationState() const {
return instantiation_state_;
}
+ // Implements Step 7.1 of:
+ // https://html.spec.whatwg.org/multipage/webappapis.html#internal-module-script-graph-fetching-procedure
+ void SetInstantiationErrorAndClearRecord(ScriptValue error);
+ // Implements Step 7.2 of:
+ // https://html.spec.whatwg.org/multipage/webappapis.html#internal-module-script-graph-fetching-procedure
void SetInstantiationSuccess();
- void SetInstantiationError(v8::Isolate*, v8::Local<v8::Value> error);
ParserDisposition ParserState() const { return parser_state_; }
WebURLRequest::FetchCredentialsMode CredentialsMode() const {

Powered by Google App Engine
This is Rietveld 408576698