it's already undefined if not an object
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment