| Index: Source/modules/indexeddb/IDBIndex.cpp
|
| diff --git a/Source/modules/indexeddb/IDBIndex.cpp b/Source/modules/indexeddb/IDBIndex.cpp
|
| index f3d31e7656922316aa306938e55245a077964e86..7321fa13cab6177ad006ddd84934c7a723c406fd 100644
|
| --- a/Source/modules/indexeddb/IDBIndex.cpp
|
| +++ b/Source/modules/indexeddb/IDBIndex.cpp
|
| @@ -235,10 +235,9 @@ IDBRequest* IDBIndex::getInternal(ScriptState* scriptState, const ScriptValue& k
|
|
|
| IDBRequest* IDBIndex::getAllInternal(ScriptState* scriptState, const ScriptValue& range, unsigned long maxCount, ExceptionState& exceptionState, bool keyOnly)
|
| {
|
| - if (!maxCount) {
|
| - exceptionState.throwTypeError(IDBDatabase::notValidMaxCountErrorMessage);
|
| - return nullptr;
|
| - }
|
| + if (!maxCount)
|
| + maxCount = std::numeric_limits<uint32_t>::max();
|
| +
|
| if (isDeleted()) {
|
| exceptionState.throwDOMException(InvalidStateError, IDBDatabase::indexDeletedErrorMessage);
|
| return nullptr;
|
|
|