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

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

Issue 2244203002: Fix "report the exception" in Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and tests Created 4 years, 4 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/ExceptionState.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
index fe50602608ce9a230a6ead4ad27f152cc401d04d..8baa0086f13c4da7b83b4fa02f2d672c72aee047 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
@@ -98,6 +98,15 @@ void ExceptionState::throwException()
V8ThrowException::throwException(m_isolate, m_exception.newLocal(m_isolate));
}
+void ExceptionState::reportException(ScriptState* scriptState,
+ v8::Local<v8::Function> function)
+{
+ DCHECK(scriptState->isolate() == m_isolate);
+ DCHECK(!m_exception.isEmpty());
+ V8ThrowException::reportException(scriptState,
+ m_exception.newLocal(m_isolate), m_message, function);
+}
+
void ExceptionState::throwTypeError(const String& message)
{
ASSERT(m_isolate);

Powered by Google App Engine
This is Rietveld 408576698