summaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 08:46:49 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 08:46:49 +0000
commite5f1ceab4ddb9a36558af2a1c061fb222fd87df6 (patch)
tree6e0a3bdc3ea2561c64a5d2846ab306308b4881b6 /compile.c
parentb2a40d21217cdffca654c7d4587237266a27c3ad (diff)
downloadruby-e5f1ceab4ddb9a36558af2a1c061fb222fd87df6.tar.gz
ruby-e5f1ceab4ddb9a36558af2a1c061fb222fd87df6.tar.xz
ruby-e5f1ceab4ddb9a36558af2a1c061fb222fd87df6.zip
* compile.c (iseq_compile_each): remove "retry" in block.
("iter{retry}" cause syntax error) Currently, "begin; ...; rescue; iter{retry}; end" cause syntax error too. * bootstraptest/test_jump.rb: ditto. * lib/drb/invokemethod.rb: ditto. * sample/drb/darrayc.rb: ditto. * sample/test.rb: ditto. * test/drb/drbtest.rb: ditto. * test/ruby/test_iterator.rb: ditto. * sample/test.rb: add a 'test' directory on the SYSTEM test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index bd5bfa995..3c76edd54 100644
--- a/compile.c
+++ b/compile.c
@@ -3078,8 +3078,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
break;
}
case NODE_RETRY:{
- if (iseq->type == ISEQ_TYPE_BLOCK ||
- iseq->type == ISEQ_TYPE_RESCUE) {
+ if (iseq->type == ISEQ_TYPE_RESCUE) {
ADD_INSN(ret, nd_line(node), putnil);
ADD_INSN1(ret, nd_line(node), throw,
INT2FIX(0x04) /* TAG_RETRY */ );