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

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

Issue 2886593002: [ES6 modules] ModuleTreeLinker::Instantiate shouldn't proceed on invalid context (Closed)
Patch Set: Created 3 years, 7 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/Modulator.h
diff --git a/third_party/WebKit/Source/core/dom/Modulator.h b/third_party/WebKit/Source/core/dom/Modulator.h
index 2e6260fefd3952a3c112dbc8210f8d1b39f3d1fb..ee04ef96d5d4bccbb720d77722b72c5f5dd400b3 100644
--- a/third_party/WebKit/Source/core/dom/Modulator.h
+++ b/third_party/WebKit/Source/core/dom/Modulator.h
@@ -99,6 +99,8 @@ class CORE_EXPORT Modulator : public GarbageCollectedFinalized<Modulator>,
static KURL ResolveModuleSpecifier(const String& module_request,
const KURL& base_url);
+ virtual bool IsContextValid() = 0;
+
virtual ScriptModule CompileModule(const String& script,
const String& url_str,
AccessControlStatus) = 0;

Powered by Google App Engine
This is Rietveld 408576698