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

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

Issue 2839563002: [ES6 modules] Return previous error when an instantiation is reattempt. (Closed)
Patch Set: 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..9b4efa65d9d4e4ea4ae69fef993d420c6854eb72 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.h
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.h
@@ -56,6 +56,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 {
hiroshige 2017/04/27 22:56:40 ModulatorImpl::GetInstantiationError() and ModuleS
kouhei (in TOK) 2017/04/28 00:55:09 Yes. That's the idea. Done.
hiroshige 2017/04/28 01:28:35 nit: Probably unifying the Create...() and Get...(
+ return instantiation_error_.NewLocal(isolate);
+ }
+
ParserDisposition ParserState() const { return parser_state_; }
WebURLRequest::FetchCredentialsMode CredentialsMode() const {
return credentials_mode_;

Powered by Google App Engine
This is Rietveld 408576698