From 976becf7eb18aa1592c703ac4d86a2cf9dfa701e Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 19 Mar 2017 01:11:12 +0000 Subject: vm_args.c: arity check of lambda * vm_eval.c (rb_yield_lambda): new function which yields an array to a proc and splat to a lambda. mainly for Enumerable only. * vm_args.c (setup_parameters_complex): remove special lambda splatting for [Bug #9605]. [ruby-core:77065] [Bug #12705] * vm_insnhelper.c (vm_callee_setup_block_arg): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- KNOWNBUGS.rb | 9 --------- 1 file changed, 9 deletions(-) (limited to 'KNOWNBUGS.rb') diff --git a/KNOWNBUGS.rb b/KNOWNBUGS.rb index 5e3c5dd01f..35a8e75876 100644 --- a/KNOWNBUGS.rb +++ b/KNOWNBUGS.rb @@ -5,12 +5,3 @@ # This test file includes tests which point out known bugs. # So all tests will cause failure. # - -assert_equal "ArgumentError", %{ - def s(a) yield a; end - begin - s([1, 2], &lambda { |a,b| [a,b] }) - rescue ArgumentError => e - e.class - end -}, '[Bug #12705]' -- cgit v1.2.3