29 Jun 2012 00:22
[Bug 17643] New: What should transaction.error be set to if a error handler throws an exception
<bugzilla <at> jessica.w3.org>
2012-06-28 22:22:17 GMT
2012-06-28 22:22:17 GMT
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17643 Summary: What should transaction.error be set to if a error handler throws an exception Product: WebAppsWG Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Indexed Database API AssignedTo: dave.null <at> w3.org ReportedBy: jonas <at> sicking.cc QAContact: public-webapps-bugzilla <at> w3.org CC: mike <at> w3.org, public-webapps <at> w3.org The most basic question is, what should happen in the following scenario: objectStore.add("value", 1); // succeeds req = objectStore.add("value", 1); // will fail due to key collision req.onerror = function(e) { throw; } This should obviously abort the transaction, but should transaction.error.name return "ConstraintError" or "AbortError". I don't have a strong opinion.(Continue reading)
RSS Feed