зеркало из https://github.com/github/ruby.git
[PRISM] Fix VM_CALL_ARGS_SPLAT_MUT failures
This commit is contained in:
Родитель
ebf803aa19
Коммит
1301422dfe
|
@ -1153,6 +1153,7 @@ pm_setup_args(pm_arguments_node_t *arguments_node, int *flags, struct rb_callinf
|
|||
// ^^
|
||||
if (index + 1 < arguments_node_list.size) {
|
||||
ADD_INSN1(ret, &dummy_line_node, splatarray, Qtrue);
|
||||
*flags |= VM_CALL_ARGS_SPLAT_MUT;
|
||||
}
|
||||
// If this is the first spalt array seen and it's the last
|
||||
// parameter, we don't want splatarray to dup it.
|
||||
|
|
|
@ -65,7 +65,7 @@ module Prism
|
|||
|
||||
filepath = File.join(base, relative)
|
||||
define_method("test_#{relative}") { assert_locals(filepath) }
|
||||
end if false # skip until ... uses * and ** and not ruby2_keywords
|
||||
end
|
||||
|
||||
def setup
|
||||
@previous_default_external = Encoding.default_external
|
||||
|
|
|
@ -11,7 +11,6 @@ module Prism
|
|||
|
||||
filepaths.each do |relative|
|
||||
define_method("test_newline_flags_#{relative}") do
|
||||
next if relative == 'locals_test.rb'
|
||||
assert_newlines(base, relative)
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче