[Prism] Use putnil for nil kwargs, not putobject {}
This addresses one of the issues in the test_kw_splat_nil failure, but doesn't make the test pass because of other changes that need to be made to Prism directly.
One issue was when we have the following code Prism was using putobject with an empty hash whereas the parse.y parser used putnil.
[Prism] Use
putnilfor nil kwargs, notputobject {}This addresses one of the issues in the
test_kw_splat_nilfailure, butdoesn't make the test pass because of other changes that need to be made
to Prism directly.
One issue was when we have the following code Prism was using
putobjectwith an empty hash whereas the parse.y parser usedputnil.Before:
After:
Related to ruby/prism#2935.