You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, functions returned by Effect.fn have a length of 0. This means that consumers cannot accurately determine the number of arguments to the function.
This problem manifests with cucumber, which verifies that functions passed as step definitions have the expected number of arguments.
What is the feature you are proposing to solve the problem?
Effect.fn should use Object.defineProperty to set the length of the returned function to the value of body.length.
What alternatives have you considered?
I have an ugly workaround in the form of a wrapper function for Effect.fn.
What is the problem this feature would solve?
Currently, functions returned by
Effect.fn
have alength
of 0. This means that consumers cannot accurately determine the number of arguments to the function.This problem manifests with cucumber, which verifies that functions passed as step definitions have the expected number of arguments.
What is the feature you are proposing to solve the problem?
Effect.fn should use
Object.defineProperty
to set thelength
of the returned function to the value ofbody.length
.What alternatives have you considered?
I have an ugly workaround in the form of a wrapper function for
Effect.fn
.Configuring the
length
property of aFunction
is widely supported.The text was updated successfully, but these errors were encountered: