diff options
Diffstat (limited to 'Source/WebCore/Modules/indexeddb/IDBRequest.cpp')
-rw-r--r-- | Source/WebCore/Modules/indexeddb/IDBRequest.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/WebCore/Modules/indexeddb/IDBRequest.cpp b/Source/WebCore/Modules/indexeddb/IDBRequest.cpp index 06ae9e235..3f6f9cd84 100644 --- a/Source/WebCore/Modules/indexeddb/IDBRequest.cpp +++ b/Source/WebCore/Modules/indexeddb/IDBRequest.cpp @@ -41,6 +41,7 @@ #include "IDBEventDispatcher.h" #include "IDBTracing.h" #include "IDBTransaction.h" +#include "ScriptExecutionContext.h" namespace WebCore { @@ -376,6 +377,16 @@ void IDBRequest::onSuccess(PassRefPtr<SerializedScriptValue> prpSerializedScript onSuccessInternal(value); } +void IDBRequest::onSuccess(int64_t value) +{ + return onSuccess(SerializedScriptValue::numberValue(value)); +} + +void IDBRequest::onSuccess() +{ + return onSuccess(SerializedScriptValue::undefinedValue()); +} + void IDBRequest::onSuccessInternal(const ScriptValue& value) { m_result = IDBAny::create(value); |