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

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

Issue 2837253002: [ES6 modules] Rethrow instantiation error when attempt to resolve instantiation failed module. (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22002a40f486ad417cd4815badbe74b47791200e..feaf9025720d190e9228d03a96dd97f120d9d0d2 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.h
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.h
@@ -64,6 +64,10 @@ class CORE_EXPORT ModuleScript final : public Script, public TraceWrapperBase {
// https://html.spec.whatwg.org/multipage/webappapis.html#internal-module-script-graph-fetching-procedure
void SetInstantiationSuccess();
+ v8::Local<v8::Value> CreateInstantiationError(v8::Isolate* isolate) const {
+ return instantiation_error_.NewLocal(isolate);
+ }
+
ParserDisposition ParserState() const { return parser_state_; }
WebURLRequest::FetchCredentialsMode CredentialsMode() const {
return credentials_mode_;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698