Revert "Add checks to see if frame exists before trying to access the func property"

This reverts commit bd6a0c0080.
This commit is contained in:
Anubhav Jain
2015-08-10 19:55:52 -07:00
parent 1b73957be2
commit c05f0aca56

View File

@@ -92,7 +92,7 @@ _.extend(Job.prototype, {
// If a nontrivial stack trace (more than just the file and line
// we already complained about), print it.
var where = "";
if (frame && frame.file) {
if (frame.file) {
where += frame.file;
if (frame.line) {
where += ":" + frame.line;
@@ -102,11 +102,11 @@ _.extend(Job.prototype, {
}
}
if (frame && ! frame.func && ! where)
if (! frame.func && ! where)
return; // that's a pretty lame stack frame
line += " at ";
if (frame && frame.func)
if (frame.func)
line += frame.func + " (" + where + ")\n";
else
line += where + "\n";