Skip to content

Commit 2ba113f

Browse files
author
chrismilleruk
committed
Merge pull request blinkbox#5 from rhodblinkbox/cucumberTag_v0.3.0-alpha
Cucumberjs-Angularjs: fix arguments.slice call in step definitions.
2 parents 468ab8b + bf46932 commit 2ba113f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cucumber/support_code/step_definition.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var StepDefinition = function (pattern, code) {
9595
self.invoke = function invoke(step, world, callback) {
9696
code = function()
9797
{
98-
var parameters = arguments.slice(0);
98+
var parameters = Array.prototype.slice.call(arguments);
9999
var codeCallback = parameters.pop();
100100

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

0 commit comments

Comments
 (0)