In looking at createObjectStore on IDBDatabase, it seems that we would have to 
update the IDBDatabase.objectStoreNames attribute on the client side after 
returning the IDBObjectStore.  Otherwise, it would be difficult to detect that 
an objectStore with the same name already exists and throw a CONSTRAINT_ERR 
exception.

Following this pattern, would it make sense to update the 
IDBDatabase.objectStoreNames attribute on the client side after executing 
deleteObjectStore before the async operation is executed.  This would allow us 
to support scenarios like:

var b = db.createObjectStore(B);
var req = db.deleteObjectStore(B);
b = db.createObjectStore(B);

What do you think?

Israel

Reply via email to