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

Unified Diff: Source/bindings/v8/custom/V8SQLTransactionCustom.cpp

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/bindings/v8/custom/V8CryptoCustom.cpp ('k') | Source/core/inspector/InspectorDatabaseAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
diff --git a/Source/bindings/v8/custom/V8SQLTransactionCustom.cpp b/Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
index 428226e1f04be1f662c17eb19f23968d3951764c..1c2787f03f1c492e7890c6fc8e6ce05a314a2edd 100644
--- a/Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
+++ b/Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
@@ -34,7 +34,6 @@
#include "V8SQLStatementCallback.h"
#include "V8SQLStatementErrorCallback.h"
-#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/V8Binding.h"
#include "core/dom/ExceptionCode.h"
#include "core/platform/sql/SQLValue.h"
@@ -109,9 +108,9 @@ void V8SQLTransaction::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8:
errorCallback = V8SQLStatementErrorCallback::create(args[3], scriptExecutionContext);
}
- ExceptionState es(args.GetIsolate());
- transaction->executeSQL(statement, sqlValues, callback, errorCallback, es);
- es.throwIfNeeded();
+ ExceptionCode ec = 0;
+ transaction->executeSQL(statement, sqlValues, callback, errorCallback, ec);
+ setDOMException(ec, args.GetIsolate());
}
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/custom/V8CryptoCustom.cpp ('k') | Source/core/inspector/InspectorDatabaseAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698