summaryrefslogtreecommitdiff
path: root/spec/ruby/core/module/module_exec_spec.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-09-27 08:07:49 -0700
committerJeremy Evans <code@jeremyevans.net>2019-09-27 11:22:21 -0700
commitd53cf854741bbf496298c5a722988d2dd84314a1 (patch)
tree9d2d8ee45b9c4bff636be7bfb993d9bb507ac0c4 /spec/ruby/core/module/module_exec_spec.rb
parent7814b6c6572446a6b64614e524d13dd423577004 (diff)
Fix warning when doing Struct.new(:x, keyword_init: true){}
This is due to calling rb_mod_module_eval directly instead of using rb_funcall_passing_block. The problem with calling directly is it does not create a new VM frame, so rb_mod_module_eval was called with no arguments, but with the keyword given VM frame flag set, which causes problems internally.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2500
Diffstat (limited to 'spec/ruby/core/module/module_exec_spec.rb')
0 files changed, 0 insertions, 0 deletions