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

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: hasvalidcontxt 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..45871f39771afc6d8beec4761f369ba5df65666e 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 HasValidContext() = 0;
+
virtual ScriptModule CompileModule(const String& script,
const String& url_str,
AccessControlStatus) = 0;

Powered by Google App Engine
This is Rietveld 408576698