Project

General

Profile

« Previous | Next » 

Revision 15dc3aaa

Added by alanwu (Alan Wu) over 1 year ago

Remove excess allocation for kwsplat to kw call

Previously, calls like the following duplicated the kwsplat hash
unnecessarily:

def foo(a:) = a
hash = {a: 10}
foo(**hash)

This is due to the fix in ca204a20231. Since it targets when the callee
has no keyword parameters, skip duplicating when the method takes
keywords.