Bug 1143526 - DataStore API should create DOMError with proper error messages. r=fabrice, a=jocheng
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 31 Mar 2015 23:23:52 +0100
changeset 238759 fb52968e0122a7e61961ccc7a6ad58b624aa70ac
parent 238758 429b9d2d4566f5fd00bcec5a7cfe18474def38d4
child 238760 dc091b8cc4293382d150f64c9fe4606c127d6e09
push id766
push userryanvm@gmail.com
push dateMon, 03 Aug 2015 14:07:36 +0000
treeherdermozilla-b2g37_v2_2@f15bd4bdff6e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice, jocheng
bugs1143526
milestone37.0
Bug 1143526 - DataStore API should create DOMError with proper error messages. r=fabrice, a=jocheng
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);
 }