Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test in strict properly.
  • Loading branch information
paulmillr committed May 16, 2012
1 parent 6f119ad commit ab73c27
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/function_invocation.coffee
Expand Up @@ -306,7 +306,12 @@ test "Prefix unary assignment operators are allowed in parenless calls.", ->

test "#855: execution context for `func arr...` should be `null`", ->
contextTest = ->
eq this, window ? global if this?
if this is undefined
eq this, undefined
else if this is null
eq this, null
else
eq this, window ? global
array = []
contextTest array
contextTest.apply undefined, array
Expand Down

0 comments on commit ab73c27

Please sign in to comment.