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

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

Issue 111373003: Migrate bindings constructors to the new ExceptionState model. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh. Created 7 years 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/Dictionary.cpp
diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp
index c69efee3907bdf1f90d4d31a7742497e95a9887f..708bb709c0e63e8963f48a31150069761ef866bd 100644
--- a/Source/bindings/v8/Dictionary.cpp
+++ b/Source/bindings/v8/Dictionary.cpp
@@ -781,7 +781,7 @@ Dictionary::ConversionContext& Dictionary::ConversionContext::withAttributes(boo
void Dictionary::ConversionContext::throwTypeError(const String& detail)
{
if (forConstructor()) {
- exceptionState().throwTypeError(ExceptionMessages::failedToConstruct(interfaceName(), detail));
+ exceptionState().throwTypeError(detail);
} else {
ASSERT(!methodName().isEmpty());
exceptionState().throwTypeError(ExceptionMessages::failedToExecute(interfaceName(), methodName(), detail));
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp ('k') | Source/bindings/v8/custom/V8BlobCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698