Bug 1143526 - DataStore API should create DOMError with proper error messages, r=fabrice
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 31 Mar 2015 23:23:52 +0100
changeset 255842 3851d1999bd5a036736928f58f209a5d9303a8d2
parent 255841 e493bd1eda41ebe29088d32c0948c303cda80792
child 255843 daf81d9bbb7ec9bd73721227a08bd6944ad54d3e
push id8007
push userraliiev@mozilla.com
push dateMon, 11 May 2015 19:23:16 +0000
treeherdermozilla-aurora@e2ce1aac996e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs1143526
milestone40.0a1
Bug 1143526 - DataStore API should create DOMError with proper error messages, r=fabrice
dom/datastore/DataStoreCursorImpl.jsm
--- 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);
 }