Commit 33361c8c 33361c8c2330dc6bca2b1d5fbfcef65028443d12 by oncletom Committed by Nicolas Perriault

it's already undefined if not an object

1 parent f6b77402
...@@ -1120,7 +1120,7 @@ Casper.prototype.runStep = function runStep(step) { ...@@ -1120,7 +1120,7 @@ Casper.prototype.runStep = function runStep(step) {
1120 }, this.options.stepTimeout, this, new Date().getTime(), this.test.currentSuiteNum + "-" + this.step); 1120 }, this.options.stepTimeout, this, new Date().getTime(), this.test.currentSuiteNum + "-" + this.step);
1121 } 1121 }
1122 this.emit('step.start', step); 1122 this.emit('step.start', step);
1123 stepResult = step.call(this, this.currentResponse || undefined); 1123 stepResult = step.call(this, this.currentResponse);
1124 if (utils.isFunction(this.options.onStepComplete)) { 1124 if (utils.isFunction(this.options.onStepComplete)) {
1125 this.options.onStepComplete.call(this, this, stepResult); 1125 this.options.onStepComplete.call(this, this, stepResult);
1126 } 1126 }
......