Skip to content

Execution context for func arr... #855

@TrevorBurnham

Description

@TrevorBurnham

Currently on master, func arr... compiles to func.apply(func, arr). In 0.9.4, it was func.apply(this, arr). However, I believe that the proper output should be func.apply(null, arr), as this example illustrates:

arr = [1, 2, 3]
`property = 'huh'; // global`
func = -> console.log @property
func arr               # 'huh'
func.apply(null, arr)  # 'huh
func arr...            # undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions