Skip to content

Arguments object is altered when contract put on a function #9

Merged
merged 1 commit into from Mar 12, 2012

2 participants

@TobiaszCudnik

Arguments object is altered when contract put on a function, particularly the arguments.length is changes.

Test case:

a :: (Any) -> Any
a = (b) ->
    console.log arguments.length
    console.log arguments
a 'b', 'c', 'd'
@disnet disnet merged commit a99109d into disnet:master Mar 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.