Reviewed-by: mduigou
Reviewed-by: jjg, ksrini
Corrected an error in a previous patch that caused captured locals to be added to the beginning, not the end of a parameter list. Reviewed-by: jjg, mcimadamore, ksrini, abuckley