Skip to content

function compose bug #14

Description

@erpeng

When we use underscore like this:
us=require "underscore"
f=us.compose(print,function(a) return a+1 end)
f(1) will trigger this bug.

Maybe in line 359
"return funcs[1](call_funcs%28_.rest%28funcs%29, ...%29)"
should change as
"return funcs1"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions