Closed markwylde closed 3 years ago
The solution (possibly temporary) to this is to only allow functions to be defined if the opening brackets are immediately after the parenthesis.
For example:
example () { }
Would need to be changed to:
example (){ }
When calling a function inside presh (e.g.
add(one(), { a: 2 }
), if one argument contains a function result, and the next argument immediately after is an object, the javascript function will be given only 1 argument of[Function: resultFn]
Example to reproduce:
Outputs: