summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-18 08:47:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-18 08:47:10 +0000
commit4378cbc0235e20ccee5ecb7d8a0e3b95c418e43d (patch)
tree5d54b445cb0d0425aadea20afc24dbb0a4535ce0 /parse.y
parentbbf2ad4ed8a142c5fba8b5e56293006b359f9b18 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 3a273da94e..39ac6f6f60 100644
--- a/parse.y
+++ b/parse.y
@@ -1507,7 +1507,11 @@ rescue : kRESCUE exc_list exc_var then
ensure : none
| kENSURE compstmt
{
- $$ = $2;
+ if ($2)
+ $$ = $2;
+ else
+ /* place holder */
+ $$ = NEW_NIL();
}
literal : numeric