Bug 1156208 - this.nfc.getErrorMessage is not a function. r=dimi
authorYoshi Huang <allstars.chh@mozilla.com>
Mon, 20 Apr 2015 17:47:24 +0800
changeset 259174 72540aa8a8dedd67306cde291e57f2d9d005849d
parent 258952 c68248668189bb4af3921f79e9a860fe8a2f52ad
child 259175 db00003d4c4b6a00b4059a594b7f1b53b47f2695
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)
reviewersdimi
bugs1156208
milestone40.0a1
Bug 1156208 - this.nfc.getErrorMessage is not a function. r=dimi From 810bdc26b4f20b448212f32458fa43b7a5e573bf Mon Sep 17 00:00:00 2001 --- dom/nfc/gonk/Nfc.js | 4 ++++ 1 file changed, 4 insertions(+)
dom/nfc/gonk/Nfc.js
--- a/dom/nfc/gonk/Nfc.js
+++ b/dom/nfc/gonk/Nfc.js
@@ -608,16 +608,20 @@ Nfc.prototype = {
       return;
     }
 
     let nfcMsgType = message.name + "Response";
     message.data.errorMsg = errorMsg;
     message.target.sendAsyncMessage(nfcMsgType, message.data);
   },
 
+  getErrorMessage: function getErrorMessage(errorCode) {
+    return NFC.NFC_ERROR_MSG[errorCode];
+  },
+
   /**
    * Process the incoming message from the NFC Service.
    */
   onEvent: function onEvent(event) {
     let message = Cu.cloneInto(event, this);
     DEBUG && debug("Received message from NFC Service: " + JSON.stringify(message));
 
     message.type = message.rspType || message.ntfType;