Index: Source/modules/indexeddb/IDBObjectStore.cpp |
diff --git a/Source/modules/indexeddb/IDBObjectStore.cpp b/Source/modules/indexeddb/IDBObjectStore.cpp |
index 5eec9b0c3aedc7ac49e3720b8edb7e77281d58f7..e81440e387a14857f802d160bcdd12a5198f8cf9 100644 |
--- a/Source/modules/indexeddb/IDBObjectStore.cpp |
+++ b/Source/modules/indexeddb/IDBObjectStore.cpp |
@@ -167,10 +167,8 @@ PassRefPtr<IDBRequest> IDBObjectStore::put(WebIDBDatabase::PutMode putMode, Pass |
return 0; |
} |
- // FIXME: Make SerializedScriptValue::create etc take an ExceptionState or use ScriptState::setDOMException. |
- bool didThrow = false; |
- RefPtr<SerializedScriptValue> serializedValue = SerializedScriptValue::create(value, didThrow, state); |
- if (didThrow) |
+ RefPtr<SerializedScriptValue> serializedValue = SerializedScriptValue::create(value, exceptionState, state); |
+ if (exceptionState.hadException()) |
return 0; |
if (serializedValue->containsBlobs()) { |