mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Revert "Add checks to see if frame exists before trying to access the func property"
This reverts commit bd6a0c0080.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user