initFunction

fun initFunction(cx: Context, scope: Scriptable, function: JSFunction, type: Int, fromEvalCode: Boolean)

Puts a declared function into the scope it belongs to.