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 id25386
push useremorley@mozilla.com
push dateTue, 01 Oct 2013 09:29:22 +0000
treeherdermozilla-central@6856c45f3688 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersYoric
bugs885615
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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");
    }