summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-11-07 00:44:08 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-11-07 00:44:08 +0900
commit6c299aae67e2e0f13a470b855298bc1efb43387a (patch)
tree4a3509d41c78f428da55e3b4aa966793d624d8d7 /test
parent0b8d8dd379fc5df137477019f0ae355d7a01735f (diff)
downloadmruby-6c299aae67e2e0f13a470b855298bc1efb43387a.tar.gz
mruby-6c299aae67e2e0f13a470b855298bc1efb43387a.zip
fixed wrong stack adjustment for ensure clauses; fix #3175
Diffstat (limited to 'test')
-rw-r--r--test/t/exception.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index 839250ea8..2dc8f5487 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -338,10 +338,13 @@ assert('Exception 19') do
begin
1 * "b"
ensure
- @e = self.z
+ @e = self.zz
end
end
+ def zz
+ true
+ end
def z
true
end