Bug 1245671: Fix Assert.rejects on release builds with DOM promises. r=markh

This commit is contained in:
Kris Maglione 2016-02-04 13:54:38 -08:00
parent 848229ab45
commit 46c84a406d

View File

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