Bug 1167957 - Remove spidermonkey specific JS from debugger

This commit is contained in:
Patrick Brosset
2015-05-25 09:17:26 +02:00
parent 75adfb1038
commit d5e8c5e2b6
50 changed files with 143 additions and 96 deletions

View File

@@ -516,9 +516,12 @@ exports.items.push({
return args.invert ? !value : value;
}
const toBlackBox = [s.attachment.source
for (s of dbg._view.Sources.items)
if (shouldBlackBox(s.attachment.source))];
const toBlackBox = [];
for (let {attachment: {source}} of dbg._view.Sources.items) {
if (shouldBlackBox(source)) {
toBlackBox.push(source);
}
}
// If we aren't black boxing any sources, bail out now.