Index: Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp |
=================================================================== |
--- Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp (revision 132816) |
+++ Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp (working copy) |
@@ -340,8 +340,9 @@ |
RefPtr<IDBKey> primaryKey = cursor->primaryKey(); |
RefPtr<IDBAny> valueAny = cursor->value(); |
- ASSERT(valueAny->type() == IDBAny::ScriptValueType); |
- ScriptValue value = valueAny->scriptValue(); |
+ ASSERT(valueAny->type() == IDBAny::SerializedScriptValueType); |
+ RefPtr<SerializedScriptValue> serializedValue = valueAny->serializedScriptValue(); |
+ ScriptValue value(deserializeIDBValue(context, serializedValue)); |
IDBObjectStore::IndexKeys indexKeys; |
generateIndexKeysForValue(m_indexMetadata, value, &indexKeys); |