| Index: Source/modules/indexeddb/IDBRequest.cpp
|
| diff --git a/Source/modules/indexeddb/IDBRequest.cpp b/Source/modules/indexeddb/IDBRequest.cpp
|
| index 16992b32ade0174816e1f35db0e4ff8a6bd849fd..2694e21cac01e6cd90ab6ea35884d972b71e6b52 100644
|
| --- a/Source/modules/indexeddb/IDBRequest.cpp
|
| +++ b/Source/modules/indexeddb/IDBRequest.cpp
|
| @@ -303,7 +303,7 @@ void IDBRequest::onSuccess(PassRefPtr<SharedBuffer> valueBuffer, PassOwnPtr<Vect
|
| onSuccessInternal(IDBAny::create(valueBuffer, m_blobInfo.get()));
|
| }
|
|
|
| -#ifndef NDEBUG
|
| +#if ENABLE(ASSERT)
|
| static IDBObjectStore* effectiveObjectStore(IDBAny* source)
|
| {
|
| if (source->type() == IDBAny::IDBObjectStoreType)
|
| @@ -322,16 +322,14 @@ void IDBRequest::onSuccess(PassRefPtr<SharedBuffer> prpValueBuffer, PassOwnPtr<V
|
| if (!shouldEnqueueEvent())
|
| return;
|
|
|
| -#ifndef NDEBUG
|
| ASSERT(keyPath == effectiveObjectStore(m_source)->metadata().keyPath);
|
| -#endif
|
|
|
| RefPtr<SharedBuffer> valueBuffer = prpValueBuffer;
|
| IDBKey* primaryKey = prpPrimaryKey;
|
| ASSERT(!m_blobInfo.get());
|
| m_blobInfo = blobInfo;
|
|
|
| -#ifndef NDEBUG
|
| +#if ENABLE(ASSERT)
|
| assertPrimaryKeyValidOrInjectable(m_scriptState.get(), valueBuffer, m_blobInfo.get(), primaryKey, keyPath);
|
| #endif
|
|
|
|
|