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

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

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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: Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
diff --git a/Source/bindings/v8/custom/V8SQLTransactionCustom.cpp b/Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
index a2dd7c6ea282eb0dd10299cd67b5754dae1991d3..1c2787f03f1c492e7890c6fc8e6ce05a314a2edd 100644
--- a/Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
+++ b/Source/bindings/v8/custom/V8SQLTransactionCustom.cpp
@@ -47,7 +47,7 @@ namespace WebCore {
void V8SQLTransaction::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
{
if (!args.Length()) {
- setDOMException(SYNTAX_ERR, args.GetIsolate());
+ setDOMException(SyntaxError, args.GetIsolate());
return;
}
@@ -57,7 +57,7 @@ void V8SQLTransaction::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8:
if (args.Length() > 1 && !isUndefinedOrNull(args[1])) {
if (!args[1]->IsObject()) {
- setDOMException(TYPE_MISMATCH_ERR, args.GetIsolate());
+ setDOMException(TypeMismatchError, args.GetIsolate());
return;
}
@@ -93,7 +93,7 @@ void V8SQLTransaction::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8:
RefPtr<SQLStatementCallback> callback;
if (args.Length() > 2 && !isUndefinedOrNull(args[2])) {
if (!args[2]->IsObject()) {
- setDOMException(TYPE_MISMATCH_ERR, args.GetIsolate());
+ setDOMException(TypeMismatchError, args.GetIsolate());
return;
}
callback = V8SQLStatementCallback::create(args[2], scriptExecutionContext);
@@ -102,7 +102,7 @@ void V8SQLTransaction::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8:
RefPtr<SQLStatementErrorCallback> errorCallback;
if (args.Length() > 3 && !isUndefinedOrNull(args[3])) {
if (!args[3]->IsObject()) {
- setDOMException(TYPE_MISMATCH_ERR, args.GetIsolate());
+ setDOMException(TypeMismatchError, args.GetIsolate());
return;
}
errorCallback = V8SQLStatementErrorCallback::create(args[3], scriptExecutionContext);
« no previous file with comments | « Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp ('k') | Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698