1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby
Jeremy Evans 660c7e050f Fix more keyword separation issues
This fixes instance_exec and similar methods. It also fixes
Enumerator::Yielder#yield, rb_yield_block, and a couple of cases
with Proc#{<<,>>}.

This support requires the addition of rb_yield_values_kw, similar to
rb_yield_values2, for passing the keyword flag.

Unlike earlier attempts at this, this does not modify the rb_block_call_func
type or add a separate function type.  The functions of type
rb_block_call_func are called by Ruby with a separate VM frame, and we can
get the keyword flag information from the VM frame flags, so it doesn't need
to be passed as a function argument.

These changes require the following VM functions accept a keyword flag:

* vm_yield_with_cref
* vm_yield
* vm_yield_with_block
2019-09-26 19:24:58 -07:00
..
enc
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb
test_argf.rb
test_arithmetic_sequence.rb
test_arity.rb
test_array.rb
test_assignment.rb test/ruby/test_assignment.rb: use bug number for assert message 2019-09-21 19:23:47 +09:00
test_ast.rb
test_autoload.rb
test_backtrace.rb
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb
test_call.rb
test_case.rb
test_class.rb
test_clone.rb
test_comparable.rb
test_complex.rb Make Kernel#{Pathname,BigDecimal,Complex} return argument if given correct type 2019-09-21 16:10:37 -07:00
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb
test_continuation.rb
test_default_gems.rb
test_defined.rb
test_dir.rb
test_dir_m17n.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_econv.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_encoding.rb
test_enum.rb
test_enumerator.rb
test_env.rb
test_eval.rb
test_exception.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_fiber.rb
test_file.rb
test_file_exhaustive.rb
test_fixnum.rb
test_flip.rb
test_float.rb
test_fnmatch.rb
test_gc.rb
test_gc_compact.rb Add compaction support to rb_ast_t 2019-09-26 15:41:46 -07:00
test_hash.rb
test_ifunless.rb
test_integer.rb
test_integer_comb.rb
test_io.rb Kernel#open may be redefined 2019-09-27 01:13:10 +09:00
test_io_m17n.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_iseq.rb [EXPERIMENTAL] Expression with modifier in 2019-09-26 15:10:48 +09:00
test_iterator.rb
test_jit.rb
test_key_error.rb
test_keyword.rb Fix more keyword separation issues 2019-09-26 19:24:58 -07:00
test_lambda.rb
test_lazy_enumerator.rb
test_literal.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_m17n.rb
test_m17n_comb.rb
test_marshal.rb
test_math.rb
test_metaclass.rb
test_method.rb Allows calling a private method only with bare self 2019-09-20 22:05:54 +09:00
test_mixed_unicode_escapes.rb
test_module.rb Fix Module#name news and add a test 2019-09-26 23:29:49 +09:00
test_not.rb
test_notimp.rb
test_numeric.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_object.rb Make Object#singleton_methods work correctly for singleton classes of objects 2019-07-23 09:46:09 -07:00
test_objectspace.rb
test_optimization.rb
test_pack.rb
test_parse.rb
test_path.rb
test_pattern_matching.rb [EXPERIMENTAL] Expression with modifier in 2019-09-26 15:10:48 +09:00
test_pipe.rb
test_primitive.rb
test_proc.rb Fix more keyword separation issues 2019-09-26 19:24:58 -07:00
test_process.rb
test_rand.rb
test_range.rb
test_rational.rb
test_rational2.rb
test_readpartial.rb
test_refinement.rb Allow calling a private method with self. 2019-09-20 02:20:59 +09:00
test_regexp.rb
test_require.rb
test_rubyoptions.rb
test_rubyvm.rb
test_rubyvm_mjit.rb RubyVM::MJIT.pause(wait: true) should wait 2019-09-26 16:28:34 +09:00
test_settracefunc.rb
test_signal.rb
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_string.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_stringchar.rb
test_struct.rb
test_super.rb
test_symbol.rb
test_syntax.rb Changed numbered parameters semantics 2019-09-25 13:01:03 +09:00
test_system.rb
test_thread.rb
test_thread_cv.rb
test_thread_queue.rb
test_threadgroup.rb
test_time.rb Separate Time#inspect from to_s and show subsec [Feature #15958] 2019-09-19 20:20:15 +09:00
test_time_tz.rb
test_trace.rb
test_transcode.rb
test_undef.rb
test_unicode_escape.rb
test_variable.rb Fix Module#class_variables for singleton classes of classes/modules 2019-09-21 16:10:18 -07:00
test_vm_dump.rb
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb