From 46c84a406d1e743f64e9da4d3b45bf0c52855b7b Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 4 Feb 2016 13:54:38 -0800 Subject: [PATCH] Bug 1245671: Fix Assert.rejects on release builds with DOM promises. r=markh --- testing/modules/Assert.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/modules/Assert.jsm b/testing/modules/Assert.jsm index d5a043c80d1..db2747aa6cf 100644 --- a/testing/modules/Assert.jsm +++ b/testing/modules/Assert.jsm @@ -109,7 +109,7 @@ Assert.AssertionError = function(options) { let stack = Components.stack; do { stack = stack.asyncCaller || stack.caller; - } while(stack.filename && stack.filename.includes("Assert.jsm")) + } while(stack && stack.filename && stack.filename.includes("Assert.jsm")) this.stack = stack; };