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; };