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

Unified Diff: Source/bindings/v8/ExceptionState.cpp

Issue 96793002: Switch custom XMLHttpRequest bindings over to new-style ExceptionState. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Inline local binding in throwTypeError() Created 7 years, 1 month 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: Source/bindings/v8/ExceptionState.cpp
diff --git a/Source/bindings/v8/ExceptionState.cpp b/Source/bindings/v8/ExceptionState.cpp
index 10223be501609f4e46f82c060cf93c30a25b5395..77c9103d7be7afe21926f028d6d315689b8af907 100644
--- a/Source/bindings/v8/ExceptionState.cpp
+++ b/Source/bindings/v8/ExceptionState.cpp
@@ -80,7 +80,7 @@ void ExceptionState::throwTypeError(const String& message)
{
ASSERT(m_isolate);
m_code = TypeError;
- setException(V8ThrowException::createTypeError(message, m_isolate));
+ setException(V8ThrowException::createTypeError(addExceptionContext(message), m_isolate));
}
void TrackExceptionState::throwDOMException(const ExceptionCode& ec, const String& message)

Powered by Google App Engine
This is Rietveld 408576698