Index: Source/modules/indexeddb/IDBDatabase.cpp |
diff --git a/Source/modules/indexeddb/IDBDatabase.cpp b/Source/modules/indexeddb/IDBDatabase.cpp |
index d7a9084632969c4735a2f00f877de65d41d87eb4..de6baf57d8fff609e7bf71f7066ce3cd7bcd4b4b 100644 |
--- a/Source/modules/indexeddb/IDBDatabase.cpp |
+++ b/Source/modules/indexeddb/IDBDatabase.cpp |
@@ -29,6 +29,7 @@ |
#include "bindings/v8/ExceptionState.h" |
#include "bindings/v8/ExceptionStatePlaceholder.h" |
#include "bindings/v8/IDBBindingUtilities.h" |
+#include "bindings/v8/SerializedScriptValue.h" |
#include "core/dom/ExecutionContext.h" |
#include "core/events/EventQueue.h" |
#include "core/inspector/ScriptCallStack.h" |
@@ -360,8 +361,8 @@ void IDBDatabase::onVersionChange(int64_t oldVersion, int64_t newVersion) |
if (m_closePending) |
return; |
- RefPtr<IDBAny> newVersionAny = newVersion == IDBDatabaseMetadata::NoIntVersion ? IDBAny::createNull() : IDBAny::create(newVersion); |
- enqueueEvent(IDBVersionChangeEvent::create(IDBAny::create(oldVersion), newVersionAny.release(), EventTypeNames::versionchange)); |
+ RefPtr<SerializedScriptValue> newVersionSSV = (newVersion == IDBDatabaseMetadata::NoIntVersion) ? SerializedScriptValue::nullValue() : SerializedScriptValue::numberValue(newVersion); |
+ enqueueEvent(IDBVersionChangeEvent::create(EventTypeNames::versionchange, SerializedScriptValue::numberValue(oldVersion), newVersionSSV.release())); |
} |
void IDBDatabase::enqueueEvent(PassRefPtr<Event> event) |