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

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

Issue 2209203002: binding: Always throws an exception in the current realm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. 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 191f03d3b479194f68f80f5fbf6397e7c662c34c..a310637937fce08613a05664960db749dd1ec0a4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
@@ -68,7 +68,7 @@ void ExceptionState::throwDOMException(const ExceptionCode& ec, const String& me
m_code = ec;
String processedMessage = addExceptionContext(message);
m_message = processedMessage;
- setException(V8ThrowException::createDOMException(m_isolate, ec, processedMessage, m_creationContext));
+ setException(V8ThrowException::createDOMException(m_isolate, ec, processedMessage));
}
void ExceptionState::throwSecurityError(const String& sanitizedMessage, const String& unsanitizedMessage)
@@ -80,7 +80,7 @@ void ExceptionState::throwSecurityError(const String& sanitizedMessage, const St
m_message = finalSanitized;
String finalUnsanitized = addExceptionContext(unsanitizedMessage);
- setException(V8ThrowException::createDOMException(m_isolate, SecurityError, finalSanitized, finalUnsanitized, m_creationContext));
+ setException(V8ThrowException::createDOMException(m_isolate, SecurityError, finalSanitized, finalUnsanitized));
}
void ExceptionState::setException(v8::Local<v8::Value> exception)
@@ -97,7 +97,7 @@ void ExceptionState::setException(v8::Local<v8::Value> exception)
void ExceptionState::throwException()
{
ASSERT(!m_exception.isEmpty());
- V8ThrowException::throwException(m_exception.newLocal(m_isolate), m_isolate);
+ V8ThrowException::throwException(m_isolate, m_exception.newLocal(m_isolate));
}
void ExceptionState::throwTypeError(const String& message)

Powered by Google App Engine
This is Rietveld 408576698