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

Unified Diff: Source/modules/indexeddb/IDBCursor.cpp

Issue 1158973007: IndexedDB: Rely on bindings for enum validation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 7 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/modules/indexeddb/IDBCursor.h ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBCursor.cpp
diff --git a/Source/modules/indexeddb/IDBCursor.cpp b/Source/modules/indexeddb/IDBCursor.cpp
index d26a7e11e2487b8f2f4ac399bed18a23735e29d1..ee01c33919af9c62a53dcc792d33666a884d6d9e 100644
--- a/Source/modules/indexeddb/IDBCursor.cpp
+++ b/Source/modules/indexeddb/IDBCursor.cpp
@@ -359,7 +359,7 @@ bool IDBCursor::isDeleted() const
return m_source->idbIndex()->isDeleted();
}
-WebIDBCursorDirection IDBCursor::stringToDirection(const String& directionString, ExceptionState& exceptionState)
+WebIDBCursorDirection IDBCursor::stringToDirection(const String& directionString)
{
if (directionString == IndexedDBNames::next)
return WebIDBCursorDirectionNext;
@@ -370,7 +370,7 @@ WebIDBCursorDirection IDBCursor::stringToDirection(const String& directionString
if (directionString == IndexedDBNames::prevunique)
return WebIDBCursorDirectionPrevNoDuplicate;
- exceptionState.throwTypeError("The direction provided ('" + directionString + "') is not one of 'next', 'nextunique', 'prev', or 'prevunique'.");
+ ASSERT_NOT_REACHED();
return WebIDBCursorDirectionNext;
}
« no previous file with comments | « Source/modules/indexeddb/IDBCursor.h ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698