Commit 9b1dc926 9b1dc9264dcf4249a1fc78764aa024d790e48117 by Nicolas Perriault

fixed possible uncaught error when calling abort()

1 parent 88a51c84
...@@ -926,7 +926,7 @@ Tester.prototype.comment = function comment(message) { ...@@ -926,7 +926,7 @@ Tester.prototype.comment = function comment(message) {
926 Tester.prototype.done = function done() { 926 Tester.prototype.done = function done() {
927 "use strict"; 927 "use strict";
928 /*jshint maxstatements:20, maxcomplexity:20*/ 928 /*jshint maxstatements:20, maxcomplexity:20*/
929 var planned, config = this.currentSuite.config; 929 var planned, config = this.currentSuite && this.currentSuite.config || {};
930 if (utils.isNumber(arguments[0])) { 930 if (utils.isNumber(arguments[0])) {
931 this.casper.warn('done() `planned` arg is deprecated as of 1.1'); 931 this.casper.warn('done() `planned` arg is deprecated as of 1.1');
932 planned = arguments[0]; 932 planned = arguments[0];
......