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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp

Issue 2819733002: Implement ModuleScript::RunScript() (Closed)
Patch Set: Update comments 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/bindings/core/v8/ScriptModule.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
index 941ace6018b268317be12056c9b79f7c130686f3..3afceafeb64f71d7006fb9501719058dc5e55f72 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
@@ -75,6 +75,17 @@ void ScriptModule::Evaluate(ScriptState* script_state) const {
}
}
+void ScriptModule::ReportException(ScriptState* script_state,
+ v8::Local<v8::Value> exception,
+ const String& file_name) {
+ v8::Isolate* isolate = script_state->GetIsolate();
+
+ v8::TryCatch try_catch(isolate);
+ try_catch.SetVerbose(true);
+
+ V8ScriptRunner::ReportExceptionForModule(isolate, exception, file_name);
+}
+
Vector<String> ScriptModule::ModuleRequests(ScriptState* script_state) {
if (IsNull())
return Vector<String>();
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptModule.h ('k') | third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698