| 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..169e72f48b4a4ffc36d391f7744779072c9073bb 100644
|
| --- a/third_party/WebKit/Source/core/dom/ModuleScript.h
|
| +++ b/third_party/WebKit/Source/core/dom/ModuleScript.h
|
| @@ -42,7 +42,7 @@ class CORE_EXPORT ModuleScript final : public Script, public TraceWrapperBase {
|
| }
|
| ~ModuleScript() override = default;
|
|
|
| - ScriptModule& Record() { return record_; }
|
| + const ScriptModule& Record() const { return record_; }
|
| void ClearRecord() { record_ = ScriptModule(); }
|
| const KURL& BaseURL() const { return base_url_; }
|
|
|
| @@ -59,6 +59,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();
|
|
|
|
|