Apply spread arguments transform.

This commit is contained in:
John-David Dalton
2017-01-06 15:42:44 -08:00
parent 7167d7e09f
commit f4a6e9ede9
5 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ function createFlow(fromRight) {
data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
!data[4].length && data[9] == 1
) {
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
wrapper = wrapper[getFuncName(data[0])](...data[3]);
} else {
wrapper = (func.length == 1 && isLaziable(func))
? wrapper[funcName]()