Bug 1237798 - Use correct Components object inside CommonJS. r=Yoric

This commit is contained in:
J. Ryan Stinnett 2016-01-07 17:18:05 -06:00
parent f69918a6a8
commit 15b860fec2

View File

@ -188,7 +188,7 @@ var PendingErrors = {
stack = error.location;
} else {
// Components.stack to the rescue!
stack = Components.stack;
stack = Components_.stack;
// Remove those top frames that refer to Promise.jsm.
while (stack) {
if (!stack.filename.endsWith("/Promise.jsm")) {