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

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

Issue 2838933003: [not-for-commit] kitsune changes + pending kouhei changes (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/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 544c0ad9f3436d4d94bba9fd76cda3dc97d33019..b2a61744bf16da2404d430eab8b57b38bd63683f 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp
@@ -76,6 +76,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>();

Powered by Google App Engine
This is Rietveld 408576698