From fb661845558b8472cb0a3f2fa4ce9240a3194350 Mon Sep 17 00:00:00 2001 From: Yoshi Huang Date: Thu, 15 Jan 2015 12:17:46 +0800 Subject: [PATCH] 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(-) --- dom/nfc/nsNfc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/nfc/nsNfc.js b/dom/nfc/nsNfc.js index 857ebc1bf0d..180adb7361b 100644 --- a/dom/nfc/nsNfc.js +++ b/dom/nfc/nsNfc.js @@ -90,7 +90,7 @@ NfcCallback.prototype = { ", errormsg: " + aErrorMsg); return; } - resolver.reject(aErrorMsg); + resolver.reject(new this._window.Error(aErrorMsg)); }, QueryInterface: XPCOMUtils.generateQI([Ci.nsISupportsWeakReference,