Also support script-local function.