Fixed wrong `ArgumentError` with keyword arguments; fix #4159

parent d47003ae
...@@ -1803,7 +1803,7 @@ RETRY_TRY_BLOCK: ...@@ -1803,7 +1803,7 @@ RETRY_TRY_BLOCK:
kdict = argv[argc-1]; kdict = argv[argc-1];
mrb_hash_check_kdict(mrb, kdict); mrb_hash_check_kdict(mrb, kdict);
} }
else if (r) { else if (r || argc <= m1+m2+o) {
kdict = mrb_hash_new(mrb); kdict = mrb_hash_new(mrb);
kargs = 0; kargs = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment