From c3e619c83dcd3223cb6d17d5a1884039b5d0cc4f Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 19 Jun 2008 02:46:02 +0000 Subject: * vm_insnhelper.c (vm_throw): fix "return" process from "lambda". * bootstraptest/test_proc.rb: add a test. * bootstraptest/pending.rb: add a pending bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/pending.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'bootstraptest/pending.rb') diff --git a/bootstraptest/pending.rb b/bootstraptest/pending.rb index 30c2416..b894fb6 100644 --- a/bootstraptest/pending.rb +++ b/bootstraptest/pending.rb @@ -13,3 +13,20 @@ assert_equal 'A', %q{ B.new.a = 'B' A.new.a }, '[ruby-core:17019]' + +assert_equal 'ok', %q{ + def m + lambda{ + proc{ + return :ng1 + } + }.call.call + :ng2 + end + + begin + m() + rescue LocalJumpError + :ok + end +} -- cgit v1.1