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

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

Issue 2244203002: Fix "report the exception" in Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved reportException to ScriptCustomElementDefinition.cpp 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.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h
index 0331b9688760f90cee877acb76b954c335d410fc..0db02915947f5889e43ae26d45c0cb8fe1c59230 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h
@@ -105,6 +105,7 @@ public:
ExceptionCode code() const { return m_code; }
const String& message() const { return m_message; }
+ v8::Local<v8::Value> getException() { return m_exception.newLocal(m_isolate); }
Yuki 2016/08/18 07:57:09 m_exception may be empty. m_exception.isEmpty() ?
kojii 2016/08/18 08:06:52 Done.
bool throwIfNeeded()
{

Powered by Google App Engine
This is Rietveld 408576698