Bug 1143526 - DataStore API should create DOMError with proper error messages. r=fabrice, a=jocheng
--- a/dom/datastore/DataStoreCursorImpl.jsm
+++ b/dom/datastore/DataStoreCursorImpl.jsm
@@ -68,17 +68,17 @@ Cu.import('resource://gre/modules/XPCOMU
* YES L[0] == 'void': R=L[0]; state->init; loop
* NO: state->revisionCheck; loop
*
* State: done: send a 'done' with R
*/
/* Helper functions */
function createDOMError(aWindow, aEvent) {
- return new aWindow.DOMError(aEvent.target.error.name);
+ return new aWindow.DOMError(aEvent);
}
/* DataStoreCursor object */
this.DataStoreCursor = function(aWindow, aDataStore, aRevisionId) {
debug("DataStoreCursor created");
this.init(aWindow, aDataStore, aRevisionId);
}