Bug 885615 - Fix "reference to undefined property exn.stack" (r=Yoric)
authorBill McCloskey <wmccloskey@mozilla.com>
Mon, 30 Sep 2013 12:24:40 -0700
changeset 149368 1cac1d22b204e440cb8307a57190a980d70881be
parent 149367 717d363cbd7d677492058f9f184d56386cf94071
child 149369 1207ad888b054f360adef51b76f85ce900de73b7
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersYoric
bugs885615
milestone27.0a1
Bug 885615 - Fix "reference to undefined property exn.stack" (r=Yoric)
toolkit/components/osfile/modules/osfile_async_worker.js
--- a/toolkit/components/osfile/modules/osfile_async_worker.js
+++ b/toolkit/components/osfile/modules/osfile_async_worker.js
@@ -46,17 +46,17 @@ if (this.Components) {
    let durationMs;
    try {
      let method = data.fun;
      LOG("Calling method", method);
      result = Agent[method].apply(Agent, data.args);
      LOG("Method", method, "succeeded");
    } catch (ex) {
      exn = ex;
-     LOG("Error while calling agent method", exn, exn.stack);
+     LOG("Error while calling agent method", exn, exn.stack || "");
    }
 
    if (start) {
      // Record duration
      durationMs = Date.now() - start;
      LOG("Method took", durationMs, "ms");
    }