Add support for SAM treatment of js.FunctionN.