Index: LayoutTests/storage/indexeddb/mozilla/resources/create-index-unique.js |
diff --git a/LayoutTests/storage/indexeddb/mozilla/resources/create-index-unique.js b/LayoutTests/storage/indexeddb/mozilla/resources/create-index-unique.js |
index 3a68a13a3882c86b4476013575ea86cf5264f600..f36ffa1c14c1b9ca8a6fa60d8709692aa868f118 100644 |
--- a/LayoutTests/storage/indexeddb/mozilla/resources/create-index-unique.js |
+++ b/LayoutTests/storage/indexeddb/mozilla/resources/create-index-unique.js |
@@ -28,7 +28,7 @@ function prepareDatabase() |
foundNewlyCreatedIndex = false; |
for (var k = 0; k < objectStore.indexNames.length; k++) { |
- if (objectStore.indexNames.item(k) == indexName) { |
+ if (objectStore.indexNames[k] == indexName) { |
foundNewlyCreatedIndex = true; |
} |
} |