adding no-argument super calls.

This commit is contained in:
Jeremy Ashkenas
2010-07-18 14:46:21 -04:00
parent d017a8f9f7
commit 989d539af3
4 changed files with 134 additions and 116 deletions

View File

@@ -317,6 +317,7 @@ grammar: {
# Calling super.
Super: [
o "SUPER", -> new CallNode 'super', [new SplatNode(new LiteralNode('arguments'))]
o "SUPER Arguments", -> new CallNode 'super', $2
]