mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
conditionals with no alternative now evaluate to 'undefined' instead of 'null'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user