mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
empty returns no longer return null
This commit is contained in:
@@ -160,7 +160,7 @@ grammar =
|
||||
# A return statement from a function body.
|
||||
Return: [
|
||||
o "RETURN Expression", -> new ReturnNode $2
|
||||
o "RETURN", -> new ReturnNode new ValueNode new LiteralNode 'null'
|
||||
o "RETURN", -> new ReturnNode
|
||||
]
|
||||
|
||||
# A block comment.
|
||||
|
||||
Reference in New Issue
Block a user