Bug 1121818 - Reject promise with instance of 'Error'. r=dimi

From da865c1cd62df020eba8515c3e19b962ccddd322 Mon Sep 17 00:00:00 2001
---
 dom/nfc/nsNfc.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
This commit is contained in:
Yoshi Huang 2015-01-15 12:17:46 +08:00
parent 0cb518946a
commit fb66184555

View File

@ -90,7 +90,7 @@ NfcCallback.prototype = {
", errormsg: " + aErrorMsg);
return;
}
resolver.reject(aErrorMsg);
resolver.reject(new this._window.Error(aErrorMsg));
},
QueryInterface: XPCOMUtils.generateQI([Ci.nsISupportsWeakReference,