empty returns no longer return null

This commit is contained in:
Jeremy Ashkenas
2010-10-06 22:24:52 -04:00
parent 69d2048ccc
commit 13774cf48a
9 changed files with 30 additions and 22 deletions

View File

@@ -102,7 +102,7 @@
o("RETURN Expression", function() {
return new ReturnNode($2);
}), o("RETURN", function() {
return new ReturnNode(new ValueNode(new LiteralNode('null')));
return new ReturnNode;
})
],
Comment: [