Commit 729acab7 729acab750a02c4ebad315440460b34e0ed5c801 by Nathan Black

due to the fix for #547 backtrace is not always defined

1 parent 69b35953
......@@ -194,7 +194,7 @@ var Casper = function Casper(options) {
notices.forEach(function(notice) {
console.error(c.colorize(notice, 'COMMENT'));
});
backtrace.forEach(function(item) {
(backtrace || []).forEach(function(item) {
var message = fs.absolute(item.file) + ":" + c.colorize(item.line, "COMMENT");
if (item['function']) {
message += " in " + c.colorize(item['function'], "PARAMETER");
......