Bug 1019244 - Do not throw on exception handling during xpcshell tests. r=ted
authorAlexandre Poirot <poirot.alex@gmail.com>
Mon, 02 Jun 2014 15:09:00 -0400
changeset 207166 5ac4b3ef5e0ec165818b83043a8658572eae1f1c
parent 207165 f323624f89a765ce4f7b5f8f2cc987cdfd612645
child 207167 d0737ba3f4c9c612f67b9e26ce95e53818d029ed
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1019244
milestone32.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 1019244 - Do not throw on exception handling during xpcshell tests. r=ted
testing/xpcshell/head.js
--- a/testing/xpcshell/head.js
+++ b/testing/xpcshell/head.js
@@ -514,17 +514,17 @@ function _load_files(aFiles) {
             diagnostic: _exception_message(e),
             source_file: element,
             stack: _format_exception_stack(e.stack)});
     } catch (e) {
       _log("javascript_error",
            {_message: "TEST-UNEXPECTED-FAIL | (xpcshell/head.js) | Source file " + element + " contains an error",
             diagnostic: _exception_message(e),
             source_file: element,
-            stack: _format_exception_stack(e.stack)});
+            stack: e.stack ? _format_exception_stack(e.stack) : null});
     }
   }
 
   aFiles.forEach(loadTailFile);
 }
 
 function _wrap_with_quotes_if_necessary(val) {
   return typeof val == "string" ? '"' + val + '"' : val;