Skip to content

Commit

Permalink
Merge pull request #5 from rhodblinkbox/cucumberTag_v0.3.0-alpha
Browse files Browse the repository at this point in the history
Cucumberjs-Angularjs: fix arguments.slice call in step definitions.
  • Loading branch information
chrismilleruk committed Dec 19, 2012
2 parents 468ab8b + bf46932 commit 2ba113f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cucumber/support_code/step_definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var StepDefinition = function (pattern, code) {
self.invoke = function invoke(step, world, callback) {
code = function()
{
var parameters = arguments.slice(0);
var parameters = Array.prototype.slice.call(arguments);
var codeCallback = parameters.pop();

// Create an angular callback. Angular just executes the function, so we wrap it here so we can include any parameters.
Expand Down

0 comments on commit 2ba113f

Please sign in to comment.