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

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

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: rebased 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 f33417973291c05e410a8cb418bb2b368a32035e..09f7d198554bc5cf4da36ab32c1d7d3db05a74bf 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.h
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.h
@@ -19,6 +19,8 @@
namespace blink {
+class ScriptModuleResolver;
+
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-module-script-instantiation-state
enum class ModuleInstantiationState {
kUninstantiated,
@@ -42,7 +44,7 @@ class CORE_EXPORT ModuleScript final : public Script, public TraceWrapperBase {
}
~ModuleScript() override = default;
- ScriptModule& Record() { return record_; }
+ const ScriptModule& Record() const { return record_; }
const KURL& BaseURL() const { return base_url_; }
ModuleInstantiationState InstantiationState() const {
@@ -62,6 +64,10 @@ class CORE_EXPORT ModuleScript final : public Script, public TraceWrapperBase {
}
const String& Nonce() const { return nonce_; }
+ v8::Local<v8::Value> CreateInstantiationError(v8::Isolate* isolate) const {
+ return instantiation_error_.NewLocal(isolate);
+ }
+
DECLARE_TRACE();
DECLARE_TRACE_WRAPPERS();
« no previous file with comments | « third_party/WebKit/Source/core/dom/ModulePendingScript.cpp ('k') | third_party/WebKit/Source/core/dom/ModuleScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698