Re: [w3c/IndexedDB] Set request result/done flag appropriately in open/delete (#202)

> ... but only for open(), since deleteDatabase() doesn't have a path where the request would be "done" and get a result/error except at the very end.

Oh yes... I c...there will be nothing to clear...

So considering the `result` getter's definition:

> The result attribute’s getter must throw an "InvalidStateError" DOMException if the done flag is unset. Otherwise, the attribute’s getter must return the result of the request, or undefined if the request resulted in an error.

...upon a `deleteDatabase` error, there will be no `InvalidStateError ` error on retrieval of the `result` property as the done flag has been set by the end of `deleteDatabase`, and the getter is already spec'd to return `undefined` if there is an error, so there is no need to explicitly set it (with nothing prior on the delete request to overwrite)...


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/pull/202#issuecomment-301654201

Received on Tuesday, 16 May 2017 02:02:59 UTC