summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-22 08:31:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-22 08:31:33 +0000
commit225cd9f109ee4918d00c1b57f8e77b82c1321202 (patch)
tree0cd5ee9fc5d3be4d8d9f1150c7333ada6bd8a2e1 /parse.y
parent48b24fe53608844aa46a51e6e965b43c00e94a19 (diff)
* 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.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 1b0608d8e7..8d3a3cc3e3 100644
--- a/parse.y
+++ b/parse.y
@@ -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);