summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-26 04:11:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-26 04:11:59 +0000
commitb0018f68590c8071bb0a242f75cc4fa048396e78 (patch)
tree1d62b82c11ddb9ab3ed6ecae81292028f2b3fe2d /parse.y
parent3cbb849bbbf6088be2c054ee89a6b47f0e39ae99 (diff)
* parse.y (ripper_get_value): escape Qundef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index f542d875f9..8dd7de3bda 100644
--- a/parse.y
+++ b/parse.y
@@ -10351,6 +10351,7 @@ static VALUE
ripper_get_value(VALUE v)
{
NODE *nd;
+ if (v == Qundef) return Qnil;
if (!RB_TYPE_P(v, T_NODE)) return v;
nd = (NODE *)v;
if (nd_type(nd) != NODE_LASGN) return Qnil;