conditionals with no alternative now evaluate to 'undefined' instead of 'null'

This commit is contained in:
Jeremy Ashkenas
2010-10-01 20:52:23 -04:00
parent 4fd878447e
commit 26de26f88f
10 changed files with 32 additions and 31 deletions

View File

@@ -66,7 +66,7 @@ ok result is undefined
func = ->
return if false then callback()
ok func() is null
ok func() is undefined
func = ->
return unless false then 100 else -100