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

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

Issue 2838043002: [ES6 modules] Introduce ModuleScript::CreateInstantiationError (Closed)
Patch Set: revert const change 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 | no next file » | 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 f33417973291c05e410a8cb418bb2b368a32035e..4e6c2dfa6359913d46c5658ea1f9679ff941f3ff 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.h
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.h
@@ -49,6 +49,10 @@ class CORE_EXPORT ModuleScript final : public Script, public TraceWrapperBase {
return instantiation_state_;
}
+ v8::Local<v8::Value> CreateInstantiationError(v8::Isolate* isolate) const {
+ return instantiation_error_.NewLocal(isolate);
+ }
+
// Implements Step 7.1 of:
// https://html.spec.whatwg.org/multipage/webappapis.html#internal-module-script-graph-fetching-procedure
void SetInstantiationErrorAndClearRecord(ScriptValue error);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698