diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-22 08:31:33 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-22 08:31:33 +0000 |
commit | 225cd9f109ee4918d00c1b57f8e77b82c1321202 (patch) | |
tree | 0cd5ee9fc5d3be4d8d9f1150c7333ada6bd8a2e1 /parse.y | |
parent | 48b24fe53608844aa46a51e6e965b43c00e94a19 (diff) | |
download | bundler-225cd9f109ee4918d00c1b57f8e77b82c1321202.tar.gz |
* parse.y (opt_rescue): use NODE_ERRINFO() instead of
NODE_GVAR("$!"), to avoid confusion from variable aliasing.
[ruby-talk:90074]
* version.c (Init_version): remove obsolete constants VERSION
etc. [ruby-dev:22643]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -384,7 +384,7 @@ stmts : none } | stmts terms stmt { - $$ = block_append($1, $3); + $$ = block_append($1, newline_node($3)); } | error stmt { @@ -1858,7 +1858,7 @@ opt_rescue : kRESCUE exc_list exc_var then opt_rescue { if ($3) { - $3 = node_assign($3, NEW_GVAR(rb_intern("$!"))); + $3 = node_assign($3, NEW_ERRINFO()); $5 = block_append($3, $5); } $$ = NEW_RESBODY($2, $5, $6); |