From 73645c1c51847198e2195d36cc8be17fbe63db25 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 Feb 2015 03:31:07 +0000 Subject: vm_insnhelper.c: fix missing reason * vm_insnhelper.c (ci_missing_reason): return the reason of method missing in call info. * vm_insnhelper.c (vm_call_opt_send): re-apply r49500 with the proper missing reason. [Bug #10828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/-ext-/symbol/test_inadvertent_creation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/-ext-/symbol/test_inadvertent_creation.rb b/test/-ext-/symbol/test_inadvertent_creation.rb index fdd1e25..cd8ad8c 100644 --- a/test/-ext-/symbol/test_inadvertent_creation.rb +++ b/test/-ext-/symbol/test_inadvertent_creation.rb @@ -383,7 +383,7 @@ module Test_Symbol assert_no_immortal_symbol_created("send should not leak - str mm") do |name| assert_nothing_raised(NoMethodError) {x.send(name)} end - end if false + end def test_send_leak_symbol_custom_method_missing x = Object.new @@ -391,7 +391,7 @@ module Test_Symbol assert_no_immortal_symbol_created("send should not leak - sym mm") do |name| assert_nothing_raised(NoMethodError) {x.send(name.to_sym)} end - end if false + end def test_send_leak_string_no_optimization assert_no_immortal_symbol_created("send should not leak - str slow") do |name| -- cgit v1.1